From f2cc333b963cb0de81aebc5ae3a8c247e99243d8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 02 六月 2026 18:21:27 +0800
Subject: [PATCH] 【市一】同步手术视图
---
smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml | 71 +++++++++++++++++++++++++++++++++++
1 files changed, 71 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..f661975 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
@@ -18,6 +18,8 @@
<result property="assigntime" column="assigntime"/>
<result property="starttime" column="starttime"/>
<result property="answertime" column="answertime"/>
+ <result property="dimension" column="lib_templateid"/>
+ <result property="isMydException" column="is_myd_exception"/>
<result property="silent" column="silent"/>
<result property="dtmfKey" column="dtmf_key"/>
@@ -70,6 +72,8 @@
<sql id="selectServiceSubtaskDetailVo">
select id,
sub_id,
+ is_myd_exception,
+ dimension,
lib_templateid,
targetid,
answerps,
@@ -129,6 +133,8 @@
<include refid="selectServiceSubtaskDetailVo"/>
where 1=1
<if test="subId != null">and sub_id = #{subId}</if>
+ <if test="isMydException != null">and is_myd_exception = #{isMydException}</if>
+ <if test="dimension != null">and dimension = #{dimension}</if>
<if test="templateType != null">and template_type = #{templateType}</if>
<if test="libTemplateid != null">and lib_templateid = #{libTemplateid}</if>
<if test="targetid != null">and targetid = #{targetid}</if>
@@ -179,6 +185,63 @@
</select>
+ <select id="getServiceSubtaskDetails" parameterType="com.smartor.domain.ServiceSubtaskDetailVO"
+ resultType="java.util.HashMap">
+ select
+ ssd.sub_id,
+ ssd.is_myd_exception,
+ ssd.dimension,
+ 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="isMydException != null">and ssd.is_myd_exception = #{isMydException}</if>
+ <if test="dimension != null">and ssd.dimension = #{dimension}</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}
@@ -261,6 +324,8 @@
<if test="templateType != null">template_type,</if>
<if test="libTemplateid != null">lib_templateid,</if>
<if test="score != null">score,</if>
+ <if test="isMydException != null">is_myd_exception,</if>
+ <if test="dimension != null">dimension,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -316,12 +381,16 @@
<if test="templateType != null">#{templateType},</if>
<if test="libTemplateid != null">#{libTemplateid},</if>
<if test="score != null">#{score},</if>
+ <if test="isMydException != null">#{isMydException},</if>
+ <if test="dimension != null">#{dimension},</if>
</trim>
</insert>
<update id="updateServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail">
update service_subtask_detail
<trim prefix="SET" suffixOverrides=",">
+ <if test="isMydException != null">is_myd_exception = #{isMydException},</if>
+ <if test="dimension != null">dimension = #{dimension},</if>
<if test="subId != null">sub_id = #{subId},</if>
<if test="taskid != null">taskid = #{taskid},</if>
<if test="targetid != null">targetid = #{targetid},</if>
@@ -434,6 +503,8 @@
<if test="templateType != null">template_type = #{templateType},</if>
<if test="libTemplateid != null">lib_templateid = #{libTemplateid},</if>
<if test="score != null">score = #{score},</if>
+ <if test="isMydException != null">is_myd_exception = #{isMydException},</if>
+ <if test="dimension != null">dimension = #{dimension},</if>
</trim>
where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId}
</update>
--
Gitblit v1.9.3