package com.gkhy.safePlatform.doublePrevention.repository; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 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 org.springframework.stereotype.Repository; import java.util.Date; import java.util.List; @Repository public interface PreventDangerCheckTaskRepository extends BaseMapper { /** * 隐患排查任务-分页查询 */ IPage getTaskPage(Page page, PreventDangerCheckTaskQueryReqDTO taskQueryReqDTO); /** * 隐患排查任务-修改 */ 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(); /** * 排查任务-上报数据状态变更 */ int updateTaskReportStatus(HandlerReportParam handlerReportParam); /** * 排查任务-认领任务 */ int taskToUser(PreventTaskToUserParams taskToUserParams); /** * 排查任务-分布式锁期间,检查任务是否已经生成 */ PreventDangerCheckTask getTaskByCheckWorkIdAndStartTime(Long workId, Date checkTime); }