From 72337c4a38bc8f5dbadbb492e2f0548521842798 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期四, 22 十月 2026 16:20:12 +0800
Subject: [PATCH] 【丽水】1、出院未到28天超时,也到了随访中心 2、出院28天超时任务,到随访中心的,会一次性生成4条任务

---
 smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
index 416c42d..16e2770 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
@@ -210,7 +210,7 @@
             resultMap="SvyLibTemplateScriptResult">
         <include refid="selectSvyLibTemplateScriptVo"/>
         <where>del_flag=0
-            <if test="dimensionList != null ">and dimension in
+            <if test="dimensionList != null and dimensionList.size() > 0">and dimension in
                 <foreach item="dimension" collection="dimensionList" open="(" separator="," close=")">
                     #{dimension}
                 </foreach>
@@ -239,7 +239,7 @@
                 #{circulationDeptPersonName},
                 '%')
             </if>
-            <if test="dimensionList == null ">and dimension IS NOT NULL </if>
+            <if test="dimensionList == null or dimensionList.size() == 0">and dimension IS NOT NULL </if>
         </where>
     </select>
 

--
Gitblit v1.9.3