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.PreventDangerCheckTaskUnit; import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerCheckTaskUnitQueryReqDTO; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckTaskUnitDeleteParams; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckTaskUnitUpdateParams; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface PreventDangerCheckTaskUnitRepository extends BaseMapper { /** * 隐患排查任务单元-分页查询 */ IPage getTaskUnitPage(Page page, PreventDangerCheckTaskUnitQueryReqDTO taskUnitQueryReqDTO); /** * 隐患排查任务单元-通过名称查询单元信息 */ PreventDangerCheckTaskUnit getTaskUnitByName(String taskUnitName); /** * 隐患排查任务单元-修改 */ int updateTaskUnit(PreventDangerCheckTaskUnitUpdateParams updateParams); /** * 隐患排查任务单元-删除 */ int deleteTaskUnit(PreventDangerCheckTaskUnitDeleteParams deleteParams); /** * 隐患排查任务单元- * 根据名称修改关联作业id */ PreventDangerCheckTaskUnit updateWorkIdByUnitName(String taskUnitName, Long checkWorkId); /** * 隐患排查任务单元- * 根据名称 修改 taskId */ int updateTaskIdByUnitName(String taskUnitName, long taskId); /** * 隐患排查任务单元- * 根据workId 查询 */ PreventDangerCheckTaskUnit getTaskUnitByWorkId(Long workId); /** * 隐患排查任务单元-重置关联任务单元workId * 根据taskUnitName */ int deleteWorkIdByUnitName(String taskUnitName); /** * 隐患排查任务单元-根据Id查询 */ PreventDangerCheckTaskUnit getTaskUnitById(Long id); /** * 隐患排查任务单元- * 根据unitId 修改 workId */ int updateWorkIdByUnitId(Long taskUnitId, long checkWorkId, String checkWorkUuid); /** * 隐患作业id,重置与任务单元的关联 */ int deleteByWorkId(Long workId); /** * 隐患排查任务单元-任务单元列表 */ List listTaskUnit(); }