|
@@ -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;
|
|
|
}
|
|
|
|