Просмотр исходного кода

优化审批流

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
cf4261ac21
1 измененных файлов: 7 добавлений и 5 удалений
  1. +7
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java

+ 7
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java Просмотреть файл

@@ -94,6 +94,7 @@ public class WxFlowServiceImpl implements WxFlowService {
if(contractType == 3){
WxPropertyContract wxPropertyContract = new WxPropertyContract();
wxPropertyContract.setId(businessId);
wxPropertyContract.setApplyStatus(applyStatus);
wxPropertyContractMapper.updateApplyStatus(wxPropertyContract);
}
}
@@ -109,10 +110,11 @@ public class WxFlowServiceImpl implements WxFlowService {
List<Map<String,String>> variables = (List)params.get("variables");

// 查询合同信息
WxRentContract wxRentContract = wxRentContractMapper.selectByPrimaryKey(businessId);
if (wxRentContract == null) {
return new ResultData(ErrorCode.RENT_CONTRACT_IS_NOT_FOUND);
}
// todo 去掉
// WxRentContract wxRentContract = wxRentContractMapper.selectByPrimaryKey(businessId);
// if (wxRentContract == null) {
// return new ResultData(ErrorCode.RENT_CONTRACT_IS_NOT_FOUND);
// }

// 设置节点处理人
HashMap<String, Object> map = new HashMap<>();
@@ -126,7 +128,7 @@ public class WxFlowServiceImpl implements WxFlowService {
map.put("businessId",businessId);
map.put("flowType",flowType);
map.put("taskAssignee",taskAssignee);
map.put("contractNumber",wxRentContract.getContractNumber());
//map.put("contractNumber",wxRentContract.getContractNumber());
map.put("variables",variables);

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(getFlowKeyByType(flowType), map);


Загрузка…
Отмена
Сохранить