package com.gk.hotwork.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.gk.hotwork.doublePrevention.entity.PreventDangerCheckWork; import com.gk.hotwork.doublePrevention.entity.dto.req.PreventDangerCheckWorkQueryReqDTO; import com.gk.hotwork.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO; import com.gk.hotwork.doublePrevention.repository.param.CheckWorkAutoUpdateParams; import com.gk.hotwork.doublePrevention.repository.param.HandlerReportParam; import com.gk.hotwork.doublePrevention.repository.param.PreventDangerCheckWorkDeleteParams; import com.gk.hotwork.doublePrevention.repository.param.PreventDangerCheckWorkUpdateParams; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.Date; import java.util.List; @Repository public interface PreventDangerCheckWorkRepository extends BaseMapper { /** * 隐患排查作业-分页查询 */ IPage getCheckWorkPage(Page page, PreventDangerCheckWorkQueryReqDTO workQueryReqDTO); /** * 隐患排查作业-修改 */ int updateCheckWork(PreventDangerCheckWorkUpdateParams updateParams); /** * 隐患排查作业-删除 */ int deleteCheckWork(PreventDangerCheckWorkDeleteParams deleteParams); /** * 隐患排查作业-根据作业名称查找 */ PreventDangerCheckWork getWorkByName(String checkWorkName); /** * 隐患排查作业-任务列表 */ List listCheckWork(); /** * 隐患排查作业-根据任务单元查找 */ PreventDangerCheckWork getWorkByTaskUnitId(Long taskUnitId); /** * 隐患排查作业-根据Id查找 */ PreventDangerCheckWork getWorkById(Long workId); /** * 隐患排查作业 下次调度时间--上传调度时间 * -根据Id */ int updateCheckWorkLastTimeAndNextTime(CheckWorkAutoUpdateParams updateWorkParams); /** * 隐患排查作业 修改为调度中 * -根据Id */ void updateCheckWorkStatus(CheckWorkAutoUpdateParams updateParams); /** * 隐患排查作业 重置作业状态 */ int resetWorkStatus(Long workId); /** * 隐患排查作业 可调度 */ List listScheduleCheckWork(); /** * 排查作业-手工上报-配置 */ int updateCheckWorkReport(PreventHandReportConfigReqDTO preventHandReportConfigReqDTO); /** * 上报数据,任务配置检索 */ List listReportWork(); /** * 上报数据,任务配置上报状态变更 */ int updateWorkReportStatus(HandlerReportParam handlerReportParam); /** * 排查作业-有问题的work */ List listErrorCheckWork(Date date); /** * 排查作业-重置错误时间 */ int resetErrorWork(Date resetTime, Long id); /** * 排查作业-检查待执行列表 */ List listExecCheckWork(@Param("startTime") Date startTime,@Param("endTime") Date endTime); /** * 排查作业-检查待执行列表 */ int resetCheckWorkStatus(Long Id); }