From 2d03ea50d2bcd65f51ffb890d899871b41f38e8d Mon Sep 17 00:00:00 2001 From: luozukai Date: Mon, 15 Apr 2019 16:14:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=A1=E6=89=B9=E6=B5=81][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9][=E5=AE=8C=E5=96=84=E8=B4=A6=E5=8D=95=E5=AE=A1?= =?UTF-8?q?=E6=89=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iformall/service/impl/WxFlowServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java index a6ebc7065..58cb12d46 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -608,9 +608,6 @@ public class WxFlowServiceImpl implements WxFlowService { Integer flowType = (Integer)mapInfo.get("flowType"); taskService.complete(taskId); - // 判断流程是否结束,并发送短信通知 - boolean end = isEndAndSendMsg(mapInfo,taskKey,processInstanceId,tenantId,userName); - //保存wx_flow_record表审批记录 WxFlowRecord wxFlowRecord = new WxFlowRecord(); wxFlowRecord.setTaskId(taskId); @@ -625,6 +622,9 @@ public class WxFlowServiceImpl implements WxFlowService { wxFlowRecord.setTaskKey(taskKey); wxFlowRecordService.saveOrUpdate(wxFlowRecord); + // 判断流程是否结束,并发送短信通知 + boolean end = isEndAndSendMsg(mapInfo,taskKey,processInstanceId,tenantId,userName); + //修改记录表当前状态 if(end){ wxFlowRecordMapper.updateCurrStatus(new WxFlowRecord(processInstanceId,EnumRentContractAppStatus.FINISH.getCode()));