|
@@ -7,6 +7,7 @@ import com.github.pagehelper.PageHelper;
|
|
|
import com.platform.common.bean.AbstractPageResultBean;
|
|
|
import com.platform.common.cache.ConfigCache;
|
|
|
import com.platform.common.constant.RedisKeyConstants;
|
|
|
+import com.platform.common.exception.DeniedException;
|
|
|
import com.platform.common.model.UserInfo;
|
|
|
import com.platform.common.util.*;
|
|
|
import com.platform.dao.bean.MyPage;
|
|
@@ -281,6 +282,21 @@ public class FillGatherTaskServiceImpl extends BaseServiceImpl<FillGatherTaskMap
|
|
|
return mapper.selectAll();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void verifyTask(FillGatherTaskDTO model) {
|
|
|
+ if(StringUtils.isBlank(model.getId())){
|
|
|
+ throw new DeniedException("任务ID不能为空");
|
|
|
+ }
|
|
|
+ FillGatherTask task = new FillGatherTask();
|
|
|
+ task.setId(model.getId());
|
|
|
+ task.setRecordJson(model.getRecordJson());
|
|
|
+ task.setUpdateTime(LocalDateTime.now());
|
|
|
+ task.setStatus(model.getStatus());
|
|
|
+ mapper.updateByPrimaryKeySelective(task);
|
|
|
+ // 通知巡检人
|
|
|
+ //sendMessageToChecker(mapper.selectByPrimaryKey(task.getId()),null);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 给巡检人发送消息
|
|
|
* @param task
|