From cfe50191bf47b33bd99fba9d400c82b1580bc2a0 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 14 八月 2023 16:45:25 +0800 Subject: [PATCH] 修改信息框行数 --- src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskControlMeasureServiceImpl.java | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 51 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskControlMeasureServiceImpl.java b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskControlMeasureServiceImpl.java index 03211a5..03dcd4c 100644 --- a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskControlMeasureServiceImpl.java +++ b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskControlMeasureServiceImpl.java @@ -1,9 +1,11 @@ package com.ruoyi.doublePrevention.service.baseService.impl; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.doublePrevention.entity.PreventRiskControlMeasure; +import com.ruoyi.doublePrevention.enums.E; +import com.ruoyi.doublePrevention.exception.AusinessException; import com.ruoyi.doublePrevention.repository.PreventRiskControlMeasureRepository; +import com.ruoyi.doublePrevention.repository.param.HandlerReportParam; import com.ruoyi.doublePrevention.service.baseService.PreventRiskControlMeasureService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -15,7 +17,6 @@ @Autowired private PreventRiskControlMeasureRepository preventRiskControlMeasureRepository; - /** * @description 新增风险控制措施 @@ -50,4 +51,52 @@ int updateResult = preventRiskControlMeasureRepository.updatePreventRiskControlMeasureById(preventRiskControlMeasure); return updateResult; } + + /** + * @description 根据控制措施编号查询风险控制措施 + */ + @Override + public PreventRiskControlMeasure getPreventRiskControlMeasureByControlMeasureCode(String controlMeasureCode) { + return preventRiskControlMeasureRepository.getPreventRiskControlMeasureByControlMeasureCode(controlMeasureCode); + } + + /** + * @description 分页获取风险管控措施 + */ + @Override + public List<PreventRiskControlMeasure> listRiskControlMeasureByCondition(Byte controlType, Long riskEventId) { + return preventRiskControlMeasureRepository.listRiskControlMeasureByCondition(controlType,riskEventId); + } + + /** + * 管控措施-不分页查询 + */ + @Override + public List<PreventRiskControlMeasure> listRiskControlMeasure() { + return preventRiskControlMeasureRepository.listRiskControlMeasure(); + } + + @Override + public PreventRiskControlMeasure getPreventRiskControlMeasureByUuid(String riskMeasureId) { + return preventRiskControlMeasureRepository.getPreventRiskControlMeasureByUuid(riskMeasureId); + } + + + /** + * 检索需要上报的风险管控措施 + */ + @Override + public List<PreventRiskControlMeasure> listReportMeasure() { + return preventRiskControlMeasureRepository.listReportMeasure(); + } + /** + * 修改上报的风险管控措施状态 + */ + @Override + public void updateMeasureReportStatus(HandlerReportParam handlerReportParam) { + int result = preventRiskControlMeasureRepository.updateMeasureReportStatus(handlerReportParam); + if (result < 1){ + throw new AusinessException(E.ADD_FAIL.getCode(), "修改管控措施状态失败"); + } + } } -- Gitblit v1.9.2