From a408612ed9bb08aefec80b001bc53f686491c33c Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期五, 30 十月 2026 14:02:31 +0800
Subject: [PATCH] 【丽水】/smartor/serviceSubtask/getSfStatisticsHyperlink 和 /smartor/serviceSubtask/getSfStatistics 统计的时候,对于 service_subtask.current_preachForm 为空的数据 当成 service_subtask.preachform 字符串的第一个执行方式

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java |    4 ++++
 smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml                       |    6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java
index 5227430..806e72f 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java
@@ -691,6 +691,10 @@
      * manualInfo - visitCount = 1 && currentPreachForm = "1"
      * voiceInfo - visitCount = 1 && currentPreachForm = "3"
      * smsInfo - visitCount = 1 && currentPreachForm = "4"
+     * manualSuccessInfo - visitCount = 1 && currentPreachForm = "1" && sendstate = 6
+     * voiceSuccessInfo - visitCount = 1 && currentPreachForm = "3" && sendstate = 6
+     * smsSuccessInfo - visitCount = 1 && currentPreachForm = "4" && sendstate = 6
+     * wechatSuccessInfo - visitCount = 1 && currentPreachForm = "5" && sendstate = 6
      * wechatInfo - visitCount = 1 && currentPreachForm = "5"
      * abnormalInfo - visitCount = 1 && excep = "1"
      * needFollowUpAgainInfo - visitCount > 1 && sendstate != 4
diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
index 5ea51de..33fef15 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
@@ -1688,7 +1688,7 @@
         deptname,
         sendstate,
         preachform,
-        current_preachform,
+        <include refid="effectiveCurrentPreachformExpr"/> AS current_preachform,
         excep,
         nurse_id,
         nurse_name,
@@ -1977,7 +1977,7 @@
         deptname,
         sendstate,
         preachform,
-        current_preachform,
+        <include refid="effectiveCurrentPreachformExpr"/> AS current_preachform,
         excep,
         nurse_id,
         nurse_name,
@@ -2078,7 +2078,7 @@
             </foreach>
         </if>
         <if test="currentPreachform != null">
-            AND current_preachform = #{currentPreachform}
+            AND <include refid="effectiveCurrentPreachformExpr"/> = #{currentPreachform}
             <if test="followUpCountStyle != null and followUpCountStyle = '1'">
                 AND sendstate != 4
             </if>

--
Gitblit v1.9.3