From 176447671a417ae00487fe0f037879c6070f1e68 Mon Sep 17 00:00:00 2001 From: huangzhen <867127663@qq.com> Date: 星期三, 07 九月 2022 17:14:16 +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