From 38955eba4ef0e86bac6b1993b6b03abbbec2a929 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 25 十一月 2026 17:55:06 +0800
Subject: [PATCH] Merge branch '20261118市一随访' into smartor_ls_merge

---
 ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml b/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml
index fbf683c..b152872 100644
--- a/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml
+++ b/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml
@@ -1024,7 +1024,9 @@
         ), '%y%m%d' ) )
         THEN 1 ELSE 0 END ) finished,1 AS tasknumber FROM service_subtask
         WHERE del_flag=0
-        <if test="starttime == null and endtime==null">
+        <!-- 鍙湁鏈寚瀹氫换浣曟椂闂磋寖鍥存椂鎵嶉粯璁ゅ彧缁熻宸插埌鏈熶换鍔★紱
+             鍙寜鍑洪櫌鏃堕棿鏌ヨ鏃朵笉鑳藉啀鎺掗櫎鏈潵 visit_time锛屽惁鍒欏強鏃剁巼鍒嗘瘝涓庝富琛ㄤ笉涓�鑷淬�� -->
+        <if test="starttime == null and endtime == null and startOutHospTime == null and endOutHospTime == null">
             AND visit_time &lt; NOW()
         </if>
         <if test="starttime != null and endtime!=null">
@@ -1116,7 +1118,9 @@
         WHERE ss.del_flag = 0
         AND ss.visit_time IS NOT NULL
         AND ss.sendstate != 4
-        <if test="starttime == null and endtime==null">
+        <!-- 鍙湁鏈寚瀹氫换浣曟椂闂磋寖鍥存椂鎵嶉粯璁ゅ彧缁熻宸插埌鏈熶换鍔★紱
+             鍙寜鍑洪櫌鏃堕棿鏌ヨ鏃朵笉鑳藉啀鎺掗櫎鏈潵 visit_time锛屽惁鍒欏強鏃剁巼鍒嗘瘝涓庝富琛ㄤ笉涓�鑷淬�� -->
+        <if test="starttime == null and endtime == null and startOutHospTime == null and endOutHospTime == null">
             AND DATE(ss.visit_time) &lt; DATE(NOW())
         </if>
         <if test="starttime != null and endtime!=null">

--
Gitblit v1.9.3