From 1ecb6109954d22e9be03518d64cdcfd89b599091 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 02 六月 2026 18:20:11 +0800
Subject: [PATCH] 1.处理修改service_task时,子任务删除,未将出院数据还原的问题; 2.新增省立同德满意度接口 3.处理患者基本信息并发新增的问题

---
 smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml |   34 ++++++++++++++++++++++++++++++----
 1 files changed, 30 insertions(+), 4 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
index 0231b76..ff1d04a 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
@@ -53,11 +53,16 @@
         <result property="dutyDeptCode" column="duty_dept_code"/>
         <result property="reportDeptCode" column="report_dept_name"/>
         <result property="reportDeptName" column="report_dept_code"/>
+        <result property="isMydException" column="is_myd_exception"/>
+        <result property="dimension" column="dimension"/>
+
     </resultMap>
 
     <sql id="selectIvrLibaTemplateScriptVo">
         select id,
                scriptno,
+               is_myd_exception,
+               dimension,
                sort,
                script_assortname,
                duty_dept_name,
@@ -111,6 +116,8 @@
         <include refid="selectIvrLibaTemplateScriptVo"/>
         where del_flag = 0
         <if test="scriptno != null ">and scriptno = #{scriptno}</if>
+        <if test="isMydException != null ">and is_myd_exception = #{isMydException}</if>
+        <if test="dimension != null ">and dimension = #{dimension}</if>
         <if test="scriptAssortid != null ">and script_assortid = #{scriptAssortid}</if>
         <if test="groupName != null ">and group_name = #{groupName}</if>
         <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if>
@@ -169,6 +176,19 @@
         <if test="score != null">and score = #{score}</if>
     </select>
 
+
+    <select id="selectILTSBydimension" parameterType="com.smartor.domain.IvrLibaTemplateScript"
+            resultMap="IvrLibaTemplateScriptResult">
+        <include refid="selectIvrLibaTemplateScriptVo"/>
+        <where>del_flag=0
+            <if test="dimensionList != null ">and dimension in
+                <foreach item="dimension" collection="dimensionList" open="(" separator="," close=")">
+                    #{dimension}
+                </foreach>
+            </if>
+        </where>
+    </select>
+
     <select id="selectIvrLibaTemplateScriptByID" parameterType="Long" resultMap="IvrLibaTemplateScriptResult">
         <include refid="selectIvrLibaTemplateScriptVo"/>
         where id = #{id}
@@ -225,6 +245,8 @@
             <if test="dutyDeptCode != null  and dutyDeptCode != ''">duty_dept_code,</if>
             <if test="reportDeptName != null  and reportDeptName != ''">report_dept_name,</if>
             <if test="reportDeptCode != null  and reportDeptCode != ''">report_dept_code,</if>
+            <if test="isMydException != null  and isMydException != ''">is_myd_exception,</if>
+            <if test="dimension != null  and dimension != ''">dimension,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="scriptno != null">#{scriptno},</if>
@@ -273,6 +295,8 @@
             <if test="dutyDeptCode != null  and dutyDeptCode != ''">#{dutyDeptCode},</if>
             <if test="reportDeptName != null  and reportDeptName != ''">#{reportDeptName},</if>
             <if test="reportDeptCode != null  and reportDeptCode != ''">#{reportDeptCode},</if>
+            <if test="isMydException != null  and isMydException != ''">#{isMydException},</if>
+            <if test="dimension != null  and dimension != ''">#{dimension},</if>
         </trim>
     </insert>
 
@@ -313,6 +337,8 @@
             <if test="isMust != null  and isMust != ''">is_must = #{isMust},</if>
             <if test="scriptDesc != null ">script_desc = #{scriptDesc},</if>
             <if test="scriptType != null ">script_type = #{scriptType},</if>
+            <if test="isMydException != null  and isMydException != ''">is_myd_exception = #{isMydException},</if>
+            <if test="dimension != null  and dimension != ''">dimension = #{dimension},</if>
             <if test="sort != null ">sort = #{sort},</if>
             <if test="ivrtext != null ">ivrtext = #{ivrtext},</if>
             <if test="branchFlag != null  and branchFlag != ''">branch_flag = #{branchFlag},</if>
@@ -350,10 +376,10 @@
         <include refid="selectIvrLibaTemplateScriptVo"/>
         where del_flag=0
         <if test="scriptAssortids != null and scriptAssortids.size > 0">
-        and script_assortid in
-        <foreach item="scriptAssortid" collection="scriptAssortids" open="(" separator="," close=")">
-            #{scriptAssortid}
-        </foreach>
+            and script_assortid in
+            <foreach item="scriptAssortid" collection="scriptAssortids" open="(" separator="," close=")">
+                #{scriptAssortid}
+            </foreach>
         </if>
     </select>
 </mapper>

--
Gitblit v1.9.3