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.PreventDangerCheckTaskRectifyDO;
|
import com.gk.hotwork.doublePrevention.entity.PreventDangerManage;
|
import com.gk.hotwork.doublePrevention.entity.dto.query.db.OwnRectifyPageDBQuery;
|
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventDangerManageQueryReqDTO;
|
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO;
|
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventRectifyOverQueryReqDTO;
|
import com.gk.hotwork.doublePrevention.repository.param.*;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.Date;
|
import java.util.List;
|
|
@Repository
|
public interface PreventDangerManageRepository extends BaseMapper<PreventDangerManage> {
|
|
/**
|
* 隐患治理清单-分页查询
|
*/
|
IPage<PreventDangerManage> getDangerManagePage(Page<Object> page, PreventDangerManageQueryReqDTO manageQueryReqDTO);
|
/**
|
* 隐患治理清单-修改
|
*/
|
int updateDangerManage(PreventDangerManageUpdateParams updateParams);
|
/**
|
* 隐患治理清单-删除
|
*/
|
int deleteDangerManage(PreventDeleteParams deleteParams);
|
/**
|
* 隐患治理清单-根据dangerCode查询
|
*/
|
PreventDangerManage getDangerManageByCode(String dangerCode);
|
/**
|
* 隐患治理清单-根据id查询
|
*/
|
PreventDangerManage getDangerManageById(Long dangerManagerId);
|
/**
|
* 隐患治理清单-根据taskId查询
|
*/
|
PreventDangerManage getDangerManageByTaskId(Long taskId);
|
/**
|
* 隐患治理清单-列表
|
*/
|
List<PreventDangerManage> listDangerManage();
|
/**
|
* 隐患管理-手工上报-配置
|
*/
|
int updateDangerManagerReport(PreventHandReportConfigReqDTO preventHandReportConfigReqDTO);
|
/**
|
* 隐患管理-验收
|
*/
|
int updateRectifyResult(UpdateRectifyResultParams updateParams);
|
/**
|
* 隐患管理-延期状态
|
*/
|
int updateManagerStatus(Long dangerManagerId, byte code);
|
/**
|
* 隐患管理-关闭隐患单
|
*/
|
int closeDanger(CloseDangerParams closeDangerParams);
|
/**
|
* 隐患-整改完成的
|
*/
|
List<PreventDangerManage> listRectifyOver(PreventRectifyOverQueryReqDTO rectifyOverQueryReqDTO);
|
|
|
|
|
|
/**
|
* 隐患-上报数据
|
*/
|
List<PreventDangerManage> listReportDanger();
|
/**
|
* 隐患-上报数据状态变更
|
*/
|
int updateManageReportStatus(HandlerReportParam handlerReportParam);
|
|
IPage<PreventDangerManage> getDangerManagePageTORectify(Page<Object> objectPage, PreventRectifyOverQueryReqDTO rectifyOverQueryReqDTO);
|
|
Integer countByCreateTime(Date startTime, Date endTime);
|
|
PreventDangerManage findByDangerSerialCode(String serialCode);
|
|
List<PreventDangerCheckTaskRectifyDO> listOwnRectifyPage(Page<PreventDangerCheckTaskRectifyDO> page,@Param("query") OwnRectifyPageDBQuery dbQuery);
|
}
|