From fed6550db0b59ab3f3d1aa3c04f19ca022da5614 Mon Sep 17 00:00:00 2001
From: 16639036659 <577530412@qq.com>
Date: Tue, 11 Jul 2023 09:04:35 +0800
Subject: [PATCH] 核查信息检验
---
src/main/resources/mybatis/tr/HiddenDangerCheckMapper.xml | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mybatis/tr/HiddenDangerCheckMapper.xml b/src/main/resources/mybatis/tr/HiddenDangerCheckMapper.xml
index 59ef875..dea7ea7 100644
--- a/src/main/resources/mybatis/tr/HiddenDangerCheckMapper.xml
+++ b/src/main/resources/mybatis/tr/HiddenDangerCheckMapper.xml
@@ -85,6 +85,7 @@
<select id="selectHiddenDangerCheckList" parameterType="HiddenDangerCheck" resultMap="HiddenDangerCheckResult">
<include refid="selectHiddenDangerCheckVo"/>
+
<where>
<if test="checkId != null and checkId != ''"> and a.check_id = #{checkId}</if>
<if test="planCreateUserId != null and planCreateUserId != ''"> and a.plan_create_user_id = #{planCreateUserId}</if>
@@ -359,4 +360,29 @@
</foreach>
</delete>
+<!-- HiddenDangerCheck getHiddenDangerCheckById(Long checkId);-->
+ <select id="getHiddenDangerCheckById" parameterType="HiddenDangerCheck" resultMap="HiddenDangerCheckResult">
+ select * from tr_hidden_danger_check
+ where check_id = #{checkId}
+ </select>
+
+ <update id="getHiddenDangerCheckByIdOld" parameterType="Long">
+ update tr_hidden_danger_check set
+ create_by = #{createBy},
+ update_by = #{updateBy},
+ create_time = #{createTime},
+ update_time = #{updateTime}
+
+ where id = #{checkId}
+ </update>
+
+
+<!-- <if test="createBy != null and createBy != ''">create_by = #{createBy},</if>-->
+<!-- <if test="createTime != null ">create_time = #{createTime},</if>-->
+<!-- <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>-->
+<!-- <if test="updateTime != null ">update_time = #{updateTime},</if>-->
+<!-- <if test="remark != null and remark != ''">remark = #{remark},</if>-->
+<!-- <if test="planCreateUserId != null and planCreateUserId != ''">plan_create_user_id = #{planCreateUserId},</if>-->
+
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.2