package com.gkhy.safePlatform.doublePrevention.service.baseService; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import com.gkhy.safePlatform.doublePrevention.entity.PreventDangerCheckTask; import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerCheckTaskQueryReqDTO; import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO; import com.gkhy.safePlatform.doublePrevention.repository.param.HandlerReportParam; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckTaskUpdateParams; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDeleteParams; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventTaskToUserParams; import java.util.Date; import java.util.List; public interface PreventDangerCheckTaskService extends IService { /** * 隐患排查任务-分页查询 */ IPage getTaskPage(Page objectPage, PreventDangerCheckTaskQueryReqDTO taskQueryReqDTO); /** * 隐患排查任务-手动新增 * ----应存在任务调度新增方式 */ int saveTask(PreventDangerCheckTask checkTask); /** * 隐患排查任务-修改 */ int updateTask(PreventDangerCheckTaskUpdateParams updateParams); /** * 隐患排查任务-删除 */ int deleteTask(PreventDeleteParams deleteParams); /** * 隐患排查任务-通过id查询信息 */ PreventDangerCheckTask getTaskById(Long checkTaskId); /** * 隐患排查任务-通过taskCode查询信息 */ PreventDangerCheckTask getTaskByCode(Long taskCode); /** * 隐患排查任务-通过id修改任务状态 */ int updateTaskStatus(Long taskId, Byte taskStatus); /** * 隐患排查任务-设置任务超时 */ int resetTaskStatus(Long taskId); /** * 隐患排查任务-通过作业id查询 */ List getTaskByCheckWorkId(Long checkWorkId); /** * 排查任务-手工上报-配置 */ int updateCheckTaskReport(PreventHandReportConfigReqDTO preventHandReportConfigReqDTO); /** * 排查任务-上报数据 */ List listReportTask(); /** * 排查任务-上报数据状态变更 */ void updateTaskReportStatus(HandlerReportParam handlerReportParam); /** * 排查任务-认领任务 */ int taskToUser(PreventTaskToUserParams taskToUserParams); /** * 排查任务-分布式锁期间,检查任务是否已经生成 */ PreventDangerCheckTask getTaskByCheckWorkIdAndStartTime(Long workId, Date checkTime); }