| @@ -608,9 +608,6 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| Integer flowType = (Integer)mapInfo.get("flowType"); | Integer flowType = (Integer)mapInfo.get("flowType"); | ||||
| taskService.complete(taskId); | taskService.complete(taskId); | ||||
| // 判断流程是否结束,并发送短信通知 | |||||
| boolean end = isEndAndSendMsg(mapInfo,taskKey,processInstanceId,tenantId,userName); | |||||
| //保存wx_flow_record表审批记录 | //保存wx_flow_record表审批记录 | ||||
| WxFlowRecord wxFlowRecord = new WxFlowRecord(); | WxFlowRecord wxFlowRecord = new WxFlowRecord(); | ||||
| wxFlowRecord.setTaskId(taskId); | wxFlowRecord.setTaskId(taskId); | ||||
| @@ -625,6 +622,9 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| wxFlowRecord.setTaskKey(taskKey); | wxFlowRecord.setTaskKey(taskKey); | ||||
| wxFlowRecordService.saveOrUpdate(wxFlowRecord); | wxFlowRecordService.saveOrUpdate(wxFlowRecord); | ||||
| // 判断流程是否结束,并发送短信通知 | |||||
| boolean end = isEndAndSendMsg(mapInfo,taskKey,processInstanceId,tenantId,userName); | |||||
| //修改记录表当前状态 | //修改记录表当前状态 | ||||
| if(end){ | if(end){ | ||||
| wxFlowRecordMapper.updateCurrStatus(new WxFlowRecord(processInstanceId,EnumRentContractAppStatus.FINISH.getCode())); | wxFlowRecordMapper.updateCurrStatus(new WxFlowRecord(processInstanceId,EnumRentContractAppStatus.FINISH.getCode())); | ||||