From 32d0aadcb7d0dc9e399279be067ba7d087467acd Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期日, 11 一月 2026 21:24:44 +0800
Subject: [PATCH] 修改语音中,获取问题内容

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

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
index 86fe53d..f75750b 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
@@ -1342,7 +1342,7 @@
             and a.del_flag=0
             AND t.del_flag=0
             <if test="orgid != null and orgid != ''">
-                and a.orgid = #{orgid}
+                and t.orgid = #{orgid}
             </if>
             <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0">
                 AND t.leavehospitaldistrictcode IN
@@ -1414,8 +1414,8 @@
         FROM
         service_subtask_detail ssd
         INNER JOIN service_subtask ss ON ssd.sub_id = ss.id
-        WHERE
-        ss.del_flag=0
+        WHERE 1=1
+        AND ss.del_flag=0
         AND ssd.del_flag = 0
         <if test="orgid != null and orgid != ''">
             AND ss.orgid = #{orgid}
@@ -1477,8 +1477,6 @@
             <if test="orgid != null and orgid != ''">
                 and ss.orgid = #{orgid}
             </if>
-            AND IFNULL(ssd.matchedtext,ssd.asrtext) IS NOT NULL
-            AND IFNULL(ssd.matchedtext,ssd.asrtext) != ''
             <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0">
                 AND ss.leavehospitaldistrictcode IN
                 <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator=","

--
Gitblit v1.9.3