| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | /** |
| | | * @description 根据时间名查询风险控制事件 |
| | | */ |
| | | @Override |
| | | public PreventRiskEvent getPreventRiskEventByEventName(String name) { |
| | | return preventRiskEventRepository.getPreventRiskEventByEventName(name); |
| | | } |
| | | |
| | | /** |
| | | * @description 根据主键id删除风险控制事件 |
| | | */ |
| | | @Override |
| | |
| | | int updateResult = preventRiskEventRepository.updatePreventRiskEventById(preventRiskEvent); |
| | | return updateResult; |
| | | } |
| | | |
| | | /** |
| | | * @description 根据条件批量获取风险控制事件 |
| | | */ |
| | | @Override |
| | | public List<PreventRiskEvent> listRiskEvenByCondition(Long riskUnitId, String riskEventName) { |
| | | return preventRiskEventRepository.listRiskEvenByCondition(riskUnitId,riskEventName); |
| | | } |
| | | |
| | | } |