From 879bc177f31717f6d4a4998840e786a668256e97 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期四, 06 八月 2026 15:52:01 +0800
Subject: [PATCH] 【景宁】查询随访任务组科室关联列表、查询随访任务组疾病关联列表

---
 smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml
index dd787d7..293cabc 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml
@@ -12,7 +12,7 @@
         <result property="age" column="age"/>
         <result property="sfzh" column="sfzh"/>
         <result property="addr" column="addr"/>
-        <result property="senderdetail" column="senderdetail"/>
+        <result property="hospitaldistrictname" column="hospitaldistrictname"/>
         <result property="type" column="type"/>
         <result property="taskid" column="taskid"/>
         <result property="templateid" column="templateid"/>
@@ -81,7 +81,7 @@
                age,
                sfzh,
                addr,
-               senderdetail,
+               hospitaldistrictname,
                type,
                taskid,
                templateid,
@@ -144,14 +144,14 @@
     <select id="selectSvyTaskSingleList" parameterType="com.smartor.domain.SvyTaskSingle"
             resultMap="SvyTaskSingleResult">
         <include refid="selectSvyTaskSingleVo"/>
-        <where>
+        where 1=1
             <if test="sendname != null  and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if>
             <if test="phone != null  and phone != ''">and phone = #{phone}</if>
             <if test="sex != null  and sex != ''">and sex = #{sex}</if>
             <if test="age != null ">and age = #{age}</if>
             <if test="sfzh != null  and sfzh != ''">and sfzh = #{sfzh}</if>
             <if test="addr != null  and addr != ''">and addr = #{addr}</if>
-            <if test="senderdetail != null  and senderdetail != ''">and senderdetail = #{senderdetail}</if>
+            <if test="hospitaldistrictname != null  and hospitaldistrictname != ''">and hospitaldistrictname = #{hospitaldistrictname}</if>
             <if test="type != null  and type != ''">and type = #{type}</if>
             <if test="taskid != null ">and taskid = #{taskid}</if>
             <if test="templateid != null  and templateid != ''">and templateid = #{templateid}</if>
@@ -207,7 +207,6 @@
             <if test="roomno != null  and roomno != ''">and roomno = #{roomno}</if>
             <if test="bedno != null  and bedno != ''">and bedno = #{bedno}</if>
             <if test="patid != null ">and patid = #{patid}</if>
-        </where>
     </select>
 
     <select id="selectSvyTaskSingleById" parameterType="Long" resultMap="SvyTaskSingleResult">
@@ -225,7 +224,7 @@
             <if test="age != null">age,</if>
             <if test="sfzh != null">sfzh,</if>
             <if test="addr != null">addr,</if>
-            <if test="senderdetail != null">senderdetail,</if>
+            <if test="hospitaldistrictname != null">hospitaldistrictname,</if>
             <if test="type != null">type,</if>
             <if test="taskid != null">taskid,</if>
             <if test="templateid != null">templateid,</if>
@@ -291,7 +290,7 @@
             <if test="age != null">#{age},</if>
             <if test="sfzh != null">#{sfzh},</if>
             <if test="addr != null">#{addr},</if>
-            <if test="senderdetail != null">#{senderdetail},</if>
+            <if test="hospitaldistrictname != null">#{hospitaldistrictname},</if>
             <if test="type != null">#{type},</if>
             <if test="taskid != null">#{taskid},</if>
             <if test="templateid != null">#{templateid},</if>
@@ -361,7 +360,7 @@
             <if test="age != null">age = #{age},</if>
             <if test="sfzh != null">sfzh = #{sfzh},</if>
             <if test="addr != null">addr = #{addr},</if>
-            <if test="senderdetail != null">senderdetail = #{senderdetail},</if>
+            <if test="hospitaldistrictname != null">hospitaldistrictname = #{hospitaldistrictname},</if>
             <if test="type != null">type = #{type},</if>
             <if test="taskid != null">taskid = #{taskid},</if>
             <if test="templateid != null">templateid = #{templateid},</if>

--
Gitblit v1.9.3