From 2bf2a296ee98bf48026e90da5c7a7b5525fb9f67 Mon Sep 17 00:00:00 2001
From: 换个名字嗨起来 <577530412@qq.com>
Date: 星期四, 25 七月 2024 15:53:24 +0800
Subject: [PATCH] 接收返回值捕获异常,打印log

---
 src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml b/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml
index 62e24e1..5b14ee8 100644
--- a/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml
+++ b/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml
@@ -192,15 +192,21 @@
         where deleted = 0 and report_status = 1
     </select>
 <!--    void updateItemDangerReportStatusById(HandlerSpecialCheckReportParam handlerCJReportParam);-->
-    <update id="updateItemDangerReportStatusById" parameterType="com.ruoyi.project.tr.specialCheck.domin.TbSpecialCheckScoreAndDangerLog">
+    <update id="updateItemDangerReportStatusById" >
         update tb_special_check_score_and_danger_log
             report_status =  #{reportStatus},
             report_time = #{reportTime}
-        where id = #{indexId}  and deleted = 0
+        where id = #{id}  and deleted = 0
     </update>
 <!--    TbSpecialCheckItemDangerLog getSpecialCheckScoreAndDangerLogById(String id);-->
     <select id="getSpecialCheckScoreAndDangerLogById" resultMap="BaseResultMap">
         select * from tb_special_check_score_and_danger_log
         where deleted = 0 and id = #{id}
     </select>
+<!--    List<TbSpecialCheckScoreAndDangerLog> listScoreAndDangerLogReportList();-->
+    <select id="listScoreAndDangerLogReportList" resultMap="BaseResultMap">
+        select * from tb_special_check_score_and_danger_log
+        where deleted = 0 and report_status = 1
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.2