| | |
| | | package com.ruoyi.doublePrevention.repository; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskEvent; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | @Repository |
| | | public interface PreventRiskEventRepository{ |
| | | |
| | | /** |
| | | * @description 新增风险控制事件 |
| | | */ |
| | | int savePreventRiskEvent(PreventRiskEvent preventRiskEvent); |
| | | |
| | | |
| | | /** |
| | | * @description 根据主键id查询风险控制事件 |
| | | */ |
| | | PreventRiskEvent getPreventRiskEventById(Long id); |
| | | |
| | | |
| | | /** |
| | | * @description 根据主键id删除风险控制事件 |
| | | */ |
| | | int deletePreventRiskEventById(PreventRiskEvent preventRiskEvent); |
| | | |
| | | /** |
| | | * @description 根据主键id对风险控制事件进行修改 |
| | | */ |
| | | int updatePreventRiskEventById(PreventRiskEvent preventRiskEvent); |
| | | |
| | | /** |
| | | * @description 根据时间名查询风险控制事件 |
| | | */ |
| | | PreventRiskEvent getPreventRiskEventByEventName(String name); |
| | | |
| | | /** |
| | | * @description 根据条件批量获取风险控制事件 |
| | | */ |
| | | List<PreventRiskEvent> listRiskEvenByCondition(@Param("riskUnitId") Long riskUnitId, @Param("riskEventName") String riskEventName); |
| | | } |