From 987e38327f849e1b13d8541246dde08d877db0e8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 14:10:43 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid

---
 smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml
index 6d2da2b..c10250a 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml
@@ -107,12 +107,14 @@
 
     <select id="selectSvyTaskList" parameterType="com.smartor.domain.SvyTask" resultMap="SvyTaskResult">
         <include refid="selectSvyTaskVo"/>
-        <where>
+        WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+
             <if test="svrtaskid != null ">and svrtaskid = #{svrtaskid}</if>
             <if test="taskName != null  and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if>
             <if test="templateid != null  and templateid != ''">and templateid = #{templateid}</if>
-            <if test="templatename != null  and templatename != ''">and templatename like concat('%', #{templatename},
-                '%')
+            <if test="templatename != null  and templatename != ''">
+                and templatename like concat('%', #{templatename},'%')
             </if>
             <if test="labelinfo != null  and labelinfo != ''">and labelinfo = #{labelinfo}</if>
             <if test="state != null ">and state = #{state}</if>
@@ -121,13 +123,13 @@
             <if test="unexecuted != null ">and unexecuted = #{unexecuted}</if>
             <if test="fail != null ">and fail = #{fail}</if>
             <if test="patientid != null  and patientid != ''">and patientid = #{patientid}</if>
-            <if test="patientname != null  and patientname != ''">and patientname like concat('%', #{patientname},
-                '%')
+            <if test="patientname != null  and patientname != ''">
+                and patientname like concat('%', #{patientname},'%')
             </if>
             <if test="addtime != null ">and addtime = #{addtime}</if>
             <if test="checkuserid != null  and checkuserid != ''">and checkuserid = #{checkuserid}</if>
-            <if test="checkusername != null  and checkusername != ''">and checkusername like concat('%',
-                #{checkusername}, '%')
+            <if test="checkusername != null  and checkusername != ''">
+                and checkusername like concat('%',#{checkusername}, '%')
             </if>
             <if test="checktime != null ">and checktime = #{checktime}</if>
             <if test="type != null  and type != ''">and type = #{type}</if>
@@ -145,12 +147,12 @@
             <if test="sendType != null ">and send_type = #{sendType}</if>
             <if test="sendState != null  and sendState != ''">and send_state = #{sendState}</if>
             <if test="param != null  and param != ''">and param = #{param}</if>
-            <if test="sendTimeSlot != null  and sendTimeSlot != ''">and send_time_slot like concat('%', #{sendTimeSlot},
-                '%')
+            <if test="sendTimeSlot != null  and sendTimeSlot != ''">
+                and send_time_slot like concat('%', #{sendTimeSlot},'%')
             </if>
             <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if>
             <if test="libtemplatename != null  and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if>
-        </where>
+        
     </select>
 
     <select id="selectSvyTaskByTaskid" parameterType="Long" resultMap="SvyTaskResult">

--
Gitblit v1.9.3