From 9819e228f5ee6ace0ad0ec56661f6da953f5148f Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 18 三月 2026 16:41:43 +0800
Subject: [PATCH] 【丽水】获取当前用户随访数量统计 补充

---
 smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
index f473c9d..dbc9afc 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
@@ -2265,6 +2265,9 @@
         COUNT(*) AS allVisitCount
         FROM service_subtask
         WHERE del_flag = '0'
+        <if test="orgid != null and orgid != ''">
+            AND orgid = #{orgid}
+        </if>
         <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0">
             AND leavehospitaldistrictcode IN
             <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="("

--
Gitblit v1.9.3