package com.gk.hotwork.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.gk.hotwork.doublePrevention.entity.PreventDangerCheckTask; import com.gk.hotwork.doublePrevention.entity.PreventDangerCheckTaskRectifyDO; import com.gk.hotwork.doublePrevention.entity.dto.req.PreventDangerCheckTaskQueryReqDTO; import com.gk.hotwork.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO; import com.gk.hotwork.doublePrevention.repository.param.HandlerReportParam; import com.gk.hotwork.doublePrevention.repository.param.PreventDangerCheckTaskUpdateParams; import com.gk.hotwork.doublePrevention.repository.param.PreventDeleteParams; import com.gk.hotwork.doublePrevention.repository.param.PreventTaskToUserParams; import java.time.LocalDateTime; import java.util.Date; import java.util.Date; import java.util.List; import java.util.Map; public interface PreventDangerCheckTaskService extends IService { /** * 隐患排查任务-分页查询 */ IPage getTaskPage(Page objectPage, PreventDangerCheckTaskQueryReqDTO taskQueryReqDTO); /** * 隐患排查任务-分页查询-手机端使用 */ IPage getTaskPageForMobile(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); /** * @Description: 获取巡检人员统计 */ List selectInspectorsStatistics(Long depId, List list, LocalDateTime startTime, LocalDateTime endTime); /** * @Description: 获取巡检完成数量 */ List selectInspectionCompleted(Long depId, Byte status, List list, LocalDateTime startTime, LocalDateTime endTime); /** * 排查任务-检查是否已经创建 */ PreventDangerCheckTask getTaskByCheckWorkIdAndStartTime(Long workId, Date checkTime); /** * 排查任务-查询应该已经过期,但是还在执行中状态的任务 */ List listOverTask(Date startTime, Date endTime); /** * 排查任务-查询应该已经开始,但是还在待执行状态的任务 */ List listWaitExecTask(Date endTime); /** * @Description: 巡检任务统计 */ List selectInspectionTask(Long depId, List list, LocalDateTime startTime, LocalDateTime endTime); /** * @Description: 每日已认领巡检任务统计 */ List selectInspectionClaimedTask(Long depId, List list, LocalDateTime startTime, LocalDateTime endTime); /** * @Description: 每日已完成巡检任务统计 */ List selectInspectionCompletedTask(Long depId, List list, LocalDateTime startTime, LocalDateTime endTime); /** * @Description: 每日未完成巡检任务统计 */ List selectInspectionUnCompletedTask(Long depId, List list, LocalDateTime startTime, LocalDateTime endTime); /** * @Description: 隐患统计 */ List selectPreventDangerPage(Page page, Map params); /** * @Description: 各个整改数量 */ Map selectRectifyNum(); /**查询应该已经结束,但是还在执行中状态的任务*/ List listTimeOutTask(Date endTime); }