|
|
|
@@ -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); |
|
|
|
|