Browse Source

巡检优化

2 years ago
parent
commit
fb1a07da48

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

@@ -58,6 +58,7 @@ 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++){
@@ -112,6 +113,7 @@ public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMap
         }else {
             throw new DeniedException("对不起,非调度人员不可以添加,删除巡检明细!");
         }
+        fillGatherTaskMapper.updateByPrimaryKeySelective(task);
 //        task.setStatus(FillGatherTaskStatusEnum.PROCESSING.getValue());
 //        mapper.updateByPrimaryKey(task);
 //        // 3、通知相关人员(巡检人和主管)