From 724940bd3838bdfb7da87a9528a532a5c9d2804d Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 27 六月 2024 11:14:36 +0800
Subject: [PATCH] 添加筛选条件
---
src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskEventServiceImpl.java | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskEventServiceImpl.java b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskEventServiceImpl.java
index 8ea2c7b..76d33b8 100644
--- a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskEventServiceImpl.java
+++ b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskEventServiceImpl.java
@@ -6,8 +6,11 @@
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.doublePrevention.entity.PreventRiskEvent;
+import com.ruoyi.doublePrevention.enums.E;
import com.ruoyi.doublePrevention.enums.StatusEnum;
+import com.ruoyi.doublePrevention.exception.AusinessException;
import com.ruoyi.doublePrevention.repository.PreventRiskEventRepository;
+import com.ruoyi.doublePrevention.repository.param.HandlerReportParam;
import com.ruoyi.doublePrevention.service.baseService.PreventRiskEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -71,4 +74,22 @@
return preventRiskEventRepository.listRiskEvenByCondition(riskUnitId,riskEventName);
}
+
+ /**
+ * 检索需要上报的风险控制事件
+ */
+ @Override
+ public List<PreventRiskEvent> listReportEvent() {
+ return preventRiskEventRepository.listReportEvent();
+ }
+ /**
+ * 安全风险事件-更新上报状态
+ */
+ @Override
+ public void updateEventReportStatus(HandlerReportParam handlerReportParam) {
+ int result = preventRiskEventRepository.updateEventReportStatus(handlerReportParam);
+ if (result < 1){
+ throw new AusinessException(E.UPDATE_FAIL.getCode(), "安全风险事件-更新上报状态失败");
+ }
+ }
}
--
Gitblit v1.9.2