From adaaa23c789be3313a0e554fbf7beaa8ab261e68 Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期四, 16 五月 2024 18:07:01 +0800
Subject: [PATCH] zjh 2024/05/16-1

---
 ltkj-hosp/src/main/resources/mapper/hosp/TjSurveyTemplateMapper.xml |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjSurveyTemplateMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjSurveyTemplateMapper.xml
index fbe6e88..3b560b4 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/TjSurveyTemplateMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjSurveyTemplateMapper.xml
@@ -16,6 +16,7 @@
         <result property="deleted" column="deleted"/>
         <result property="designId" column="design_id"/>
         <result property="qybz" column="qybz"/>
+        <result property="deptId" column="dept_id"/>
     </resultMap>
 
     <resultMap id="TjSurveyTemplateTjSurveyTempQuesResult" type="TjSurveyTemplate" extends="TjSurveyTemplateResult">
@@ -78,6 +79,7 @@
                a.deleted,
                a.design_id,
                a.qybz,
+               a.dept_id,
                b.tqid        as
                    sub_tqid,
                b.mid         as
@@ -156,6 +158,8 @@
             </if>
             <if test="qybz != null">qybz,
             </if>
+            <if test="deptId != null">dept_id,
+            </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="tempName != null">#{tempName},
@@ -176,8 +180,8 @@
             </if>
             <if test="designId != null">#{designId},
             </if>
-            <if test="qybz != null">#{qybz},
-            </if>
+            <if test="qybz != null">#{qybz},</if>
+            <if test="deptId != null">#{deptId},</if>
         </trim>
     </insert>
 
@@ -214,6 +218,8 @@
             <if test="qybz != null">qybz =
                 #{qybz},
             </if>
+            <if test="deptId != null">dept_id= #{deptId},
+            </if>
         </trim>
         where mid = #{mid}
     </update>

--
Gitblit v1.8.0