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.PreventDangerCheckWork; import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerCheckWorkQueryReqDTO; import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO; import com.gkhy.safePlatform.doublePrevention.repository.param.CheckWorkAutoUpdateParams; import com.gkhy.safePlatform.doublePrevention.repository.param.HandlerReportParam; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckWorkDeleteParams; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckWorkUpdateParams; import org.springframework.stereotype.Service; import java.util.List; public interface PreventDangerCheckWorkService extends IService { /** * 隐患排查作业-分页查询 */ IPage getCheckWorkPage(Page objectPage, PreventDangerCheckWorkQueryReqDTO workQueryReqDTO); /** * 隐患排查作业-新增 */ int saveCheckWork(PreventDangerCheckWork checkWorkParams); /** * 隐患排查作业-修改 */ 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(); /** * 上报数据,任务配置上报状态变更 */ void updateWorkReportStatus(HandlerReportParam handlerReportParam); }