From 7be0d5b901b999d2347774df3cc1a64927838bb3 Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期二, 15 四月 2025 10:10:35 +0800 Subject: [PATCH] 优化每年专项数据获取 --- src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml b/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml index 2fdf2b4..5b14ee8 100644 --- a/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml +++ b/src/main/resources/mybatis/tr/TbSpecialCheckScoreAndDangerLogMapper.xml @@ -38,7 +38,7 @@ <where> deleted = 0 <if test="id != null"> - and check_item_id = #{checkItemId} + and check_score_id = #{id} </if> <if test="checkType != null"> and check_type like concat('%',#{checkType},'%') @@ -154,9 +154,6 @@ <if test="checkDate != null"> check_date = #{checkDate}, </if> - <if test="resultStatus != null"> - result_status = #{resultStatus}, - </if> <if test="reportStatus != null"> report_status = #{reportStatus}, </if> @@ -195,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