guarantee-lsq 2 роки тому
батько
коміт
75ea0dfb0b

+ 0 - 1
platform-activiti/src/main/java/com/platform/activiti/dao/entity/ActAuditRequest.java

@@ -3,7 +3,6 @@ package com.platform.activiti.dao.entity;
 import lombok.Data;
 
 import java.io.Serializable;
-import java.time.LocalDateTime;
 
 /**
  * @Description 审批信息

+ 2 - 13
platform-service/src/main/java/com/platform/service/fill/impl/FillGatherTaskServiceImpl.java

@@ -58,7 +58,6 @@ public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMap
     private final SysUserMapper sysUserMapper;
     private final FillUpdateRecordMapper fillUpdateRecordMapper;
     private final SysRoleMapper sysRoleMapper;
-    private final FillGatherTaskMapper fillGatherTaskMapper;
 
     private void deleteDetails(List<String> detailIds){
         for(int i=0;i<detailIds.size();i++){
@@ -71,7 +70,7 @@ public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMap
     @Override
     public int updateDetails(FillGatherTaskDTO dto) {
         //先获取勾选设备,更新
-        FillGatherTask task1 =  mapper.selectOne(new FillGatherTask().setId(dto.getId()));
+        FillGatherTask task1 = mapper.selectOne(new FillGatherTask().setId(dto.getId()));
         FillGatherTask task = new FillGatherTask();
         task.setId(dto.getId());
         UserInfo userInfo = SecurityUtils.getUserInfo();
@@ -113,17 +112,7 @@ public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMap
         }else {
             throw new DeniedException("对不起,非调度人员不可以添加,删除巡检明细!");
         }
-        fillGatherTaskMapper.updateByPrimaryKeySelective(task);
-//        task.setStatus(FillGatherTaskStatusEnum.PROCESSING.getValue());
-//        mapper.updateByPrimaryKey(task);
-//        // 3、通知相关人员(巡检人和主管)
-//        sendMessageToChecker(task,1);
-//        sendMessageToChecker(task,2);
-//        // 4、启动超时监控预警信息
-//        int initMin = task.getRequireHour()*60;
-//        int hours = task.getWarningHour() == null ? initMin + 120 : task.getWarningHour()*60 + initMin;
-//        log.info("-----------hours------------"+hours);
-//        RedisUtils.setString(RedisKeyConstants.EXPIRE_BUSINESS_KEY_FILL_PREFIX + RedisKeyConstants.EXPIRE_BUSINESS_SEP + task.getId(), task.getId(), hours, TimeUnit.MINUTES);
+        mapper.updateByPrimaryKeySelective(task);
         return 0;
     }