From a1808ba0ff1ccc2efacb69c1033054dbaab8687f Mon Sep 17 00:00:00 2001
From: zhaowenxuan <chacca165@163.com>
Date: 星期四, 10 七月 2025 17:57:16 +0800
Subject: [PATCH] 2025-07-10

---
 ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml |  106 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 104 insertions(+), 2 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml
index bc3017d..76813a6 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml
@@ -20,6 +20,16 @@
         <result property="updateBy" column="update_by"/>
         <result property="updateTime" column="update_time"/>
         <result property="deleted" column="deleted"/>
+        <result property="parentId" column="parent_id"/>
+        <result property="jyxh" column="jyxh"/>
+        <result property="specimenTypeCode" column="specimen_type_code"/>
+        <result property="isMerge" column="is_merge"/>
+        <result property="jyxmdm" column="jyxmdm"/>
+        <result property="jxbz" column="jxbz"/>
+        <result property="createId" column="create_id"/>
+        <result property="updateId" column="update_id"/>
+        <result property="isPay" column="is_pay"/>
+        <result property="isApply" column="is_apply"/>
     </resultMap>
 
     <sql id="selectTjSamplingVo">
@@ -37,7 +47,15 @@
                create_time,
                update_by,
                update_time,
-               deleted
+               deleted,
+               parent_id,
+               jyxh,
+               specimen_type_code,
+               is_merge,
+               jyxmdm,
+               jxbz,
+               create_id,
+               update_id
         from tj_sampling
     </sql>
 
@@ -113,6 +131,26 @@
             </if>
             <if test="deleted != null">deleted,
             </if>
+            <if test="parentId != null">parent_id,
+            </if>
+            <if test="jyxh != null">jyxh,
+            </if>
+            <if test="specimenTypeCode != null">specimen_type_code,
+            </if>
+            <if test="isMerge != null">is_merge,
+            </if>
+            <if test="jyxmdm != null">jyxmdm,
+            </if>
+            <if test="jxbz != null">jxbz,
+            </if>
+            <if test="createId != null">create_id,
+            </if>
+            <if test="updateId != null">update_id,
+            </if>
+            <if test="isPay != null">is_pay,
+            </if>
+            <if test="isApply != null">is_apply,
+            </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},
@@ -144,6 +182,26 @@
             <if test="updateTime != null">#{updateTime},
             </if>
             <if test="deleted != null">#{deleted},
+            </if>
+            <if test="parentId != null">#{parentId},
+            </if>
+            <if test="jyxh != null">#{jyxh},
+            </if>
+            <if test="specimenTypeCode != null">#{specimenTypeCode},
+            </if>
+            <if test="isMerge != null">#{isMerge},
+            </if>
+            <if test="jyxmdm != null">#{jyxmdm},
+            </if>
+            <if test="jxbz != null">#{jxbz},
+            </if>
+            <if test="createId != null">#{createId},
+            </if>
+            <if test="updateId != null">#{updateId},
+            </if>
+            <if test="isPay != null">#{isPay},
+            </if>
+            <if test="isApply != null">#{isApply},
             </if>
         </trim>
     </insert>
@@ -192,6 +250,32 @@
             <if test="deleted != null">deleted =
                 #{deleted},
             </if>
+            <if test="parentId != null">parent_id =
+                #{parentId},
+            </if>
+            <if test="jyxh != null">jyxh =
+                #{jyxh},
+            </if>
+            <if test="specimenTypeCode != null">specimen_type_code =
+                #{specimenTypeCode},
+            </if>
+            <if test="isMerge != null">is_merge =
+                #{isMerge},
+            </if>
+            <if test="isMerge != null">jyxmdm =
+                #{jyxmdm},
+            </if>
+            <if test="jxbz != null">jxbz =
+                #{jxbz},
+            </if>
+            <if test="createId != null">create_id = #{createId},
+            </if>
+            <if test="updateId != null">update_id = #{updateId},
+            </if>
+            <if test="isPay != null">is_pay = #{isPay},
+            </if>
+            <if test="isApply != null">is_apply = #{isApply},
+            </if>
         </trim>
         where id = #{id}
     </update>
@@ -208,4 +292,22 @@
             #{id}
         </foreach>
     </delete>
-</mapper>
\ No newline at end of file
+
+
+    <update id="updateHeBingXm" parameterType="java.util.Map">
+        UPDATE tj_sampling a SET a.parent_id=#{parentId} WHERE a.id in
+        <foreach item="id" collection="ids" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+
+
+    <update id="updateHeBingXms" parameterType="java.util.Map">
+        UPDATE tj_sampling a SET a.parent_id=null WHERE a.parent_id in
+        <foreach item="id" collection="ids" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+
+
+</mapper>

--
Gitblit v1.8.0