From 4fb65d8e3c5fc8ddb8882a355cd31ecb9d51f3d9 Mon Sep 17 00:00:00 2001 From: 16639036659 <577530412@qq.com> Date: 星期二, 18 六月 2024 15:13:38 +0800 Subject: [PATCH] 评分项内容拆分 --- src/main/resources/mybatis/tr/TbSpecialCheckItemDangerLogMapper.xml | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mybatis/tr/TbSpecialCheckItemDangerLogMapper.xml b/src/main/resources/mybatis/tr/TbSpecialCheckItemDangerLogMapper.xml index 1591667..04608a2 100644 --- a/src/main/resources/mybatis/tr/TbSpecialCheckItemDangerLogMapper.xml +++ b/src/main/resources/mybatis/tr/TbSpecialCheckItemDangerLogMapper.xml @@ -10,6 +10,7 @@ <result property="companyCode" column="company_code"/> <result property="dangerId" column="danger_id"/> + <result property="dangerName" column="danger_name"/> <result property="taskId" column="task_id"/> <result property="checkType" column="check_type"/> <result property="checkItemId" column="check_item_id"/> @@ -41,11 +42,11 @@ select * from tb_special_check_item_danger_log <where> deleted = 0 - <if test="indexId != null"> - and index_id = #{indexId} + <if test="id != null"> + and task_id = #{id} </if> - <if test="checkWay != null"> - and check_way like concat('%',#{checkWay},'%') + <if test="checkType != null"> + and check_type like concat('%',#{checkType},'%') </if> <if test="reportStatus != null"> and report_status = #{reportStatus} @@ -69,6 +70,7 @@ <if test="companyCode != null ">company_code,</if> <if test="dangerId != null ">danger_id,</if> + <if test="dangerName != null ">danger_name,</if> <if test="taskId != null ">task_id,</if> <if test="checkType != null ">check_type,</if> <if test="checkItemId != null ">check_item_id,</if> @@ -100,6 +102,7 @@ <if test="companyCode != null ">#{companyCode},</if> <if test="dangerId != null ">#{dangerId},</if> + <if test="dangerName != null ">#{dangerName},</if> <if test="taskId != null ">#{taskId},</if> <if test="checkType != null ">#{checkType},</if> <if test="checkItemId != null ">#{checkItemId},</if> @@ -134,6 +137,9 @@ <set> <if test="dangerId != null "> danger_id = #{dangerId}, + </if> + <if test="dangerName != null "> + danger_name= #{dangerName}, </if> <if test="taskId != null"> task_id = #{taskId}, @@ -228,4 +234,9 @@ report_time = #{reportTime} where id = #{indexId} and deleted = 0 </update> +<!-- TbSpecialCheckItemDangerLog getSpecialCheckItemDangerLogById(String id);--> + <select id="getSpecialCheckItemDangerLogById" resultMap="BaseResultMap"> + select * from tb_special_check_item_danger_log + where deleted = 0 and id = #{id} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.2