From 1787e235922ca30045c6875269c5114defef52d7 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期五, 23 十月 2026 15:48:31 +0800
Subject: [PATCH] 【丽水】指标统计,出院人次为0。同一科室有多条信息展示。

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

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
index f7d7118..299bca0 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
@@ -210,12 +210,12 @@
             resultMap="IvrLibaTemplateScriptResult">
         <include refid="selectIvrLibaTemplateScriptVo"/>
         <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>
             </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>
             <if test="dutyDeptPersonName != null  and dutyDeptPersonName != ''">and duty_dept_person_name like concat('%', #{dutyDeptPersonName},
                 '%')
             </if>

--
Gitblit v1.9.3