From 58b0713d68fa8fef72a39c1ea6102dd36a4d2a9c Mon Sep 17 00:00:00 2001 From: 16639036659 <577530412@qq.com> Date: 星期一, 19 九月 2022 10:40:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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