From c24bb5c5abdba213aaf490b4061b41608fa843bb Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 19 五月 2026 17:29:50 +0800
Subject: [PATCH] 【丽水】获取随访详情-指标详情(超链接) 接口

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

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
index 1a09422..0591b17 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
@@ -179,6 +179,59 @@
 
     </select>
 
+    <select id="getServiceSubtaskDetails" parameterType="com.smartor.domain.ServiceSubtaskDetailVO"
+            resultType="java.util.HashMap">
+        select
+            ssd.sub_id,
+            ssd.taskid,
+            ssd.patid,
+            sd.sendname,
+            ssd.questiontext,
+            ssd.matchedtext,
+            ssd.asrtext,
+            ssd.scriptid,
+            ssd.targetid,
+            ssd.template_type,
+            ssd.lib_templateid,
+            sd.deptcode,
+            sd.deptname,
+            sd.leavehospitaldistrictcode,
+            sd.leavehospitaldistrictname
+        from service_subtask_detail ssd
+        inner join service_subtask sd on ssd.sub_id = sd.id
+        where ssd.del_flag = '0'
+        and sd.del_flag = '0'
+        <if test="orgid != null and orgid != ''">and ssd.orgid = #{orgid}</if>
+        <if test="subId != null">and ssd.sub_id = #{subId}</if>
+        <if test="taskid != null">and ssd.taskid = #{taskid}</if>
+        <if test="questiontext != null and questiontext != ''">and ssd.questiontext = #{questiontext}</if>
+        <if test="matchedtext != null and matchedtext != ''">and ssd.matchedtext = #{matchedtext}</if>
+        <if test="asrtext != null and asrtext != ''">and ssd.asrtext = #{asrtext}</if>
+        <if test="scriptid != null">and ssd.scriptid = #{scriptid}</if>
+        <if test="patid != null">and ssd.patid = #{patid}</if>
+        <if test="templateType != null">and ssd.template_type = #{templateType}</if>
+        <if test="libTemplateid != null">and ssd.lib_templateid = #{libTemplateid}</if>
+        <if test="targetid != null">and ssd.targetid = #{targetid}</if>
+        <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0">
+            and sd.leavehospitaldistrictcode in
+            <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")">
+                #{leavehospitaldistrictcode}
+            </foreach>
+        </if>
+        <if test="leaveldeptcodes != null and leaveldeptcodes.size() > 0">
+            and sd.deptcode in
+            <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")">
+                #{leaveldeptcode}
+            </foreach>
+        </if>
+        <if test="scriptIds != null and scriptIds.size() > 0">
+            and ssd.scriptid in
+            <foreach collection="scriptIds" item="scriptId" open="(" separator="," close=")">
+                #{scriptId}
+            </foreach>
+        </if>
+        order by ssd.sub_id desc, ssd.id desc
+    </select>
     <select id="selectServiceSubtaskDetailByCalldetailid" parameterType="String" resultMap="ServiceSubtaskDetailResult">
         <include refid="selectServiceSubtaskDetailVo"/>
         where id = #{id}

--
Gitblit v1.9.3