From cd373a1f9b2de04804b7869eb33abedcf3566363 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 23 九月 2026 10:18:07 +0800
Subject: [PATCH] 【丽水】随访任务页查询,待发送/已发送数量改为异步查询

---
 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