From 886a387463f4e0e0ad6f7c2a04d2cfab2e3aace8 Mon Sep 17 00:00:00 2001 From: huangzhen <867127663@qq.com> Date: 星期五, 28 十月 2022 10:48:05 +0800 Subject: [PATCH] 新增管控措施不分页 --- src/main/java/com/ruoyi/doublePrevention/repository/PreventRiskControlMeasureRepository.java | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/ruoyi/doublePrevention/repository/PreventRiskControlMeasureRepository.java b/src/main/java/com/ruoyi/doublePrevention/repository/PreventRiskControlMeasureRepository.java index dfb8c83..a6c0f8f 100644 --- a/src/main/java/com/ruoyi/doublePrevention/repository/PreventRiskControlMeasureRepository.java +++ b/src/main/java/com/ruoyi/doublePrevention/repository/PreventRiskControlMeasureRepository.java @@ -10,6 +10,42 @@ import java.util.List; @Repository -public interface PreventRiskControlMeasureRepository extends BaseMapper<PreventRiskControlMeasure> { +public interface PreventRiskControlMeasureRepository{ + + /** + * @description 新增风险控制措施 + */ + int savePreventRiskControlMeasure(PreventRiskControlMeasure preventRiskControlMeasure); + + + /** + * @description 根据主键id删除风险控制措施 + */ + int deletePreventRiskControlMeasureById(PreventRiskControlMeasure preventRiskControlMeasure); + + /** + * @description 根据主键id对风险控制措施进行修改 + */ + int updatePreventRiskControlMeasureById(PreventRiskControlMeasure preventRiskControlMeasure); + + /** + * @description 根据主键id查询风险控制措施 + */ + PreventRiskControlMeasure getPreventRiskControlMeasureById(Long id); + + /** + * @description 根据控制措施编号查询风险控制措施 + */ + PreventRiskControlMeasure getPreventRiskControlMeasureByControlMeasureCode(@Param("controlMeasureCode") String controlMeasureCode); + + /** + * @description 分页获取风险管控措施 + */ + List<PreventRiskControlMeasure> listRiskControlMeasureByCondition(@Param("controlType") Byte controlType,@Param("riskEventId") Long riskEventId); + + /** + * 管控措施-不分页查询 + */ + List<PreventRiskControlMeasure> listRiskControlMeasure(); } -- Gitblit v1.9.2