package com.gk.hotwork.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.gk.hotwork.doublePrevention.entity.PreventRiskControlMeasure;
|
import com.gk.hotwork.doublePrevention.entity.dto.PreventRiskControlMeasureListDO;
|
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO;
|
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventRiskControlMeasureListQueryReqDTO;
|
import com.gk.hotwork.doublePrevention.entity.dto.resp.PreventrCheckContentRespDTO;
|
import com.gk.hotwork.doublePrevention.repository.param.HandlerReportParam;
|
import com.gk.hotwork.doublePrevention.repository.param.PreventRiskControlMeasureDeleteParams;
|
import com.gk.hotwork.doublePrevention.repository.param.PreventRiskControlMeasureQueryParams;
|
import com.gk.hotwork.doublePrevention.repository.param.PreventRiskControlMeasureUpdateParams;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
public interface PreventRiskControlMeasureService extends IService<PreventRiskControlMeasure> {
|
|
/**
|
* 管控措施-分页查询
|
*/
|
IPage<PreventRiskControlMeasure> getRiskControlMeasurePage(@Param("page") Page<Object> page, @Param("queryParams") PreventRiskControlMeasureQueryParams queryParams);
|
|
|
/**
|
* 管控措施-根据RiskEventId查询
|
*/
|
List<PreventRiskControlMeasure> getRiskControlMeasureByRiskEventId(Long riskEventId);
|
/**
|
* 管控措施-新增
|
*/
|
int saveRiskControlMeasure(PreventRiskControlMeasure controlMeasure);
|
/**
|
* 管控措施-根据措施编码与riskEventId查询
|
*/
|
PreventRiskControlMeasure getRiskControlMeasureByCodeAndEventId(Long riskEventId, String controlMeasureCode);
|
/**
|
* 管控措施-修改
|
*/
|
int updateRiskControlMeasure(PreventRiskControlMeasureUpdateParams updateParams);
|
/**
|
* 管控措施-根据id查询
|
*/
|
PreventRiskControlMeasure getControlMeasureById(Long id);
|
/**
|
* 管控措施-删除
|
*/
|
int deleteRiskControlMeasure(PreventRiskControlMeasureDeleteParams deleteParams);
|
/**
|
* 任务单元、任务关联修改
|
* 管控措施-修改管控措施By
|
*/
|
void updateControlMeasureByUnitId(Long unitId);
|
/**
|
* 管控措施-根据measureCode查询
|
*/
|
PreventRiskControlMeasure getControlMeasureByCode(String measureCode);
|
/**
|
* 管控措施-根据measureCode
|
* 修改关联checkWorkId
|
*/
|
PreventRiskControlMeasure updateWorkIdByMeasureCode(String controlMeasureCode, Long checkWorkId);
|
/**
|
* 管控措施-根据WorkId查询
|
*/
|
List<PreventRiskControlMeasure> getControlMeasureByWorkId(Long workId);
|
|
/**
|
* 管控措施-根据单元id查找对应措施id列表
|
*/
|
List<PreventRiskControlMeasure> getlistByUnitId(Long taskUnitId);
|
/**
|
* 管控措施-根据measureId修改关联的任务taskId
|
*/
|
void updateControlMeasureByMeasureIdAndUnitId(Long measureId, Long taskUnitId);
|
/**
|
* 措施-手工上报-配置
|
*/
|
int updateMeasuresReport(PreventHandReportConfigReqDTO preventHandReportConfigReqDTO);
|
|
/**
|
* 措施-手工上报-配置
|
*/
|
List<PreventRiskControlMeasure> listReportMeasure();
|
/**
|
* 管控措施- 管控措施列表
|
*/
|
List<PreventRiskControlMeasure> listControlMeasure();
|
|
|
/**
|
* 管控措施- 管控措施UUid
|
*/
|
PreventRiskControlMeasure getControlMeasureByUuid(String measureUuid);
|
|
/**
|
* 管控措施- 上报状态更新
|
*/
|
void updateMeasureReportStatus(HandlerReportParam handlerReportParam);
|
/**
|
* 管控措施- 管控措施列表 - 分页
|
*/
|
IPage<PreventRiskControlMeasureListDO> listControlMeasurePage(Page<Object> objectPage, PreventRiskControlMeasureListQueryReqDTO listQueryReqDTO);
|
|
/**
|
* 管控措施+内容 批量查询
|
*/
|
List<PreventRiskControlMeasure> getControlMeasureAndContent(List<Long> idLists);
|
/**
|
* 管控措施+内容 查询全部
|
*/
|
List<PreventRiskControlMeasure> listAllControlMeasure();
|
}
|