From 2ccbb8881721a16ec5cf68b12346ecdc0b6941cf Mon Sep 17 00:00:00 2001
From: huangzhen <867127663@qq.com>
Date: 星期日, 09 十月 2022 09:10:00 +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 7b7029d..8ea2c7b 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
@@ -1,8 +1,12 @@
package com.ruoyi.doublePrevention.service.baseService.impl;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+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.StatusEnum;
import com.ruoyi.doublePrevention.repository.PreventRiskEventRepository;
import com.ruoyi.doublePrevention.service.baseService.PreventRiskEventService;
import org.springframework.beans.factory.annotation.Autowired;
@@ -34,6 +38,14 @@
}
/**
+ * @description 根据时间名查询风险控制事件
+ */
+ @Override
+ public PreventRiskEvent getPreventRiskEventByEventName(String name) {
+ return preventRiskEventRepository.getPreventRiskEventByEventName(name);
+ }
+
+ /**
* @description 根据主键id删除风险控制事件
*/
@Override
@@ -50,4 +62,13 @@
int updateResult = preventRiskEventRepository.updatePreventRiskEventById(preventRiskEvent);
return updateResult;
}
+
+ /**
+ * @description 根据条件批量获取风险控制事件
+ */
+ @Override
+ public List<PreventRiskEvent> listRiskEvenByCondition(Long riskUnitId, String riskEventName) {
+ return preventRiskEventRepository.listRiskEvenByCondition(riskUnitId,riskEventName);
+ }
+
}
--
Gitblit v1.9.2