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/project/tr/hiddenDangerCheck/controller/DangerRectifyController.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/project/tr/hiddenDangerCheck/controller/DangerRectifyController.java b/src/main/java/com/ruoyi/project/tr/hiddenDangerCheck/controller/DangerRectifyController.java
index 353460b..032f88f 100644
--- a/src/main/java/com/ruoyi/project/tr/hiddenDangerCheck/controller/DangerRectifyController.java
+++ b/src/main/java/com/ruoyi/project/tr/hiddenDangerCheck/controller/DangerRectifyController.java
@@ -104,6 +104,9 @@
 
         // todo-2022 隐患信息保存
         int result = riskService.updateDangerInfoRectify(hiddenDangerCheckPoint);
+        if (result < 1){
+            throw new RuntimeException("整改信息保存失败");
+        }
 
         hiddenDangerCheckPointService.getTaskCountTotal(getSysUser().getUserId());//查询未执行任务总数量并推送
 

--
Gitblit v1.9.2