Ver código fonte

处理时限加入禁用

wangliang 1 ano atrás
pai
commit
6a99409e9c

+ 3 - 0
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBSopInfoServiceImpl.java

@@ -86,6 +86,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
     @Resource
     TFFlowLogService tfFlowLogService;
 
+
     /**
      * 查询动态sop表名是否存在
      *
@@ -754,6 +755,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
             }
             if (Objects.nonNull(execField)) {
                 for (Task task : taskList) {
+                    tsJobRemindService.updateJobRemind(Long.parseLong(task.getId()));
                     List<TSJobRemind> tsJobRemindList = new ArrayList<>();
                     if (Objects.nonNull(task.getAssignee())) {
                         tsJobRemindList.add(new TSJobRemind(JobQuartzTypeEnum.FLOW, tfCustomFlowEntity.getCode(), Long.parseLong(task.getId()), tfCustomFlow.getType().getTitle() + ";" + task.getName(), JobTypeEnum.BEFORE, Long.parseLong(task.getAssignee()), tfFlowLog.getApproveOperation(), processLimitedTime, execField, sysUser.getId()));
@@ -907,6 +909,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
             map.put(SystemConstant.FLOW_APPROVE, tfFlowApprove);
             map.put(SystemConstant.FLOW_APPROVE_LOG, tfFlowLog);
             map.put(SystemConstant.CRM_INFO, crmProjectResult);
+
             tbSopInfoService.saveJobRemind(map);
         }