From e180e3a496d6f29d3a3b34016400de9d997c6bd9 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 07 四月 2026 14:42:23 +0800
Subject: [PATCH] 省立同德满意度功能提交
---
smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml | 149 +++++++++++++++++++++++++++++++++----------------
1 files changed, 100 insertions(+), 49 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
index 255d283..0231b76 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
@@ -22,7 +22,7 @@
<result property="submoduleVoice" column="submoduleVoice"/>
<result property="noClearlyText" column="noClearlyText"/>
<result property="noClearlyVoice" column="noClearlyVoice"/>
- <result property="categoryName" column="categoryName"/>
+ <result property="scriptAssortname" column="script_assortname"/>
<result property="playWavOnly" column="playWavOnly"/>
<result property="valueType" column="value_type"/>
<result property="delFlag" column="del_flag"/>
@@ -48,12 +48,23 @@
<result property="sort" column="sort"/>
<result property="score" column="score"/>
<result property="groupName" column="group_name"/>
+ <result property="scriptAssortid" column="script_assortid"/>
+ <result property="dutyDeptName" column="duty_dept_name"/>
+ <result property="dutyDeptCode" column="duty_dept_code"/>
+ <result property="reportDeptCode" column="report_dept_name"/>
+ <result property="reportDeptName" column="report_dept_code"/>
</resultMap>
<sql id="selectIvrLibaTemplateScriptVo">
select id,
scriptno,
sort,
+ script_assortname,
+ duty_dept_name,
+ duty_dept_code,
+ report_dept_name,
+ report_dept_code,
+ script_assortid,
group_name,
branch_flag,
branch_nextscriptno,
@@ -73,7 +84,6 @@
submoduleVoice,
noClearlyText,
noClearlyVoice,
- categoryName,
targetid,
value_type,
targetvalue,
@@ -99,50 +109,64 @@
<select id="selectIvrLibaTemplateScriptList" parameterType="com.smartor.domain.IvrLibaTemplateScript"
resultMap="IvrLibaTemplateScriptResult">
<include refid="selectIvrLibaTemplateScriptVo"/>
- <where>
- del_flag=0
- <if test="scriptno != null ">and scriptno = #{scriptno}</if>
- <if test="groupName != null ">and group_name = #{groupName}</if>
- <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if>
- <if test="templateid != null ">and templateid = #{templateid}</if>
- <if test="scriptPoint != null and scriptPoint != ''">and script_point = #{scriptPoint}</if>
- <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if>
- <if test="ivrVoice != null and ivrVoice != ''">and ivr_voice = #{ivrVoice}</if>
- <if test="ivrtext != null and ivrtext != ''">and ivrtext = #{ivrtext}</if>
- <if test="noMatchText != null and noMatchText != ''">and noMatchText = #{noMatchText}</if>
- <if test="noMatchVoice != null and noMatchVoice != ''">and noMatchVoice = #{noMatchVoice}</if>
- <if test="slienceText != null and slienceText != ''">and slienceText = #{slienceText}</if>
- <if test="slienceVoice != null and slienceVoice != ''">and slienceVoice = #{slienceVoice}</if>
- <if test="submoduleText != null and submoduleText != ''">and submoduleText = #{submoduleText}</if>
- <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if>
- <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if>
- <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if>
- <if test="nextScriptno != null and nextScriptno != ''">and next_scriptno = #{nextScriptno}</if>
- <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if>
- <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno =
- #{branchNextscriptno}
- </if>
- <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName},
- '%')
- </if>
- <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%',
- #{scriptTopic},
- '%')
- </if>
- <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if>
- <if test="valueType != null ">and value_type = #{valueType}</if>
- <if test="isupload != null ">and isupload = #{isupload}</if>
- <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
- <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
- <if test="pid != null ">and pid = #{pid}</if>
- <if test="guid != null and guid != ''">and guid = #{guid}</if>
- <if test="targetid != null ">and targetid = #{targetid}</if>
- <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
- <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if>
- <if test="scriptType != null">and script_type = #{scriptType}</if>
- <if test="sort != null">and sort = #{sort}</if>
- <if test="score != null">and score = #{score}</if>
- </where>
+ where del_flag = 0
+ <if test="scriptno != null ">and scriptno = #{scriptno}</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>
+ <if test="templateid != null ">and templateid = #{templateid}</if>
+ <if test="scriptPoint != null and scriptPoint != ''">and script_point = #{scriptPoint}</if>
+ <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if>
+ <if test="ivrVoice != null and ivrVoice != ''">and ivr_voice = #{ivrVoice}</if>
+ <if test="ivrtext != null and ivrtext != ''">and ivrtext = #{ivrtext}</if>
+ <if test="noMatchText != null and noMatchText != ''">and noMatchText = #{noMatchText}</if>
+ <if test="noMatchVoice != null and noMatchVoice != ''">and noMatchVoice = #{noMatchVoice}</if>
+ <if test="slienceText != null and slienceText != ''">and slienceText = #{slienceText}</if>
+ <if test="slienceVoice != null and slienceVoice != ''">and slienceVoice = #{slienceVoice}</if>
+ <if test="submoduleText != null and submoduleText != ''">and submoduleText = #{submoduleText}</if>
+ <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if>
+ <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if>
+ <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if>
+ <if test="nextScriptno != null and nextScriptno != ''">and next_scriptno = #{nextScriptno}</if>
+ <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if>
+ <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno =
+ #{branchNextscriptno}
+ </if>
+ <if test="scriptAssortname != null and scriptAssortname != ''">and script_assortname like concat('%',
+ #{scriptAssortname},
+ '%')
+ </if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">and duty_dept_name like concat('%', #{dutyDeptName},
+ '%')
+ </if>
+ <if test="dutyDeptCode != null and dutyDeptCode != ''">and duty_dept_code like concat('%', #{dutyDeptCode},
+ '%')
+ </if>
+ <if test="reportDeptName != null and reportDeptName != ''">and report_dept_name like concat('%',
+ #{reportDeptName},
+ '%')
+ </if>
+ <if test="reportDeptCode != null and reportDeptCode != ''">and report_dept_code like concat('%',
+ #{reportDeptCode},
+ '%')
+ </if>
+ <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%',
+ #{scriptTopic},
+ '%')
+ </if>
+ <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if>
+ <if test="valueType != null ">and value_type = #{valueType}</if>
+ <if test="isupload != null ">and isupload = #{isupload}</if>
+ <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
+ <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
+ <if test="pid != null ">and pid = #{pid}</if>
+ <if test="guid != null and guid != ''">and guid = #{guid}</if>
+ <if test="targetid != null ">and targetid = #{targetid}</if>
+ <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
+ <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if>
+ <if test="scriptType != null">and script_type = #{scriptType}</if>
+ <if test="sort != null">and sort = #{sort}</if>
+ <if test="score != null">and score = #{score}</if>
</select>
<select id="selectIvrLibaTemplateScriptByID" parameterType="Long" resultMap="IvrLibaTemplateScriptResult">
@@ -169,7 +193,7 @@
<if test="submoduleVoice != null">submoduleVoice,</if>
<if test="noClearlyText != null">noClearlyText,</if>
<if test="noClearlyVoice != null">noClearlyVoice,</if>
- <if test="categoryName != null">categoryName,</if>
+ <if test="scriptAssortname != null">script_assortname,</if>
<if test="playWavOnly != null">playWavOnly,</if>
<if test="valueType != null">value_type,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
@@ -196,6 +220,11 @@
<if test="score != null ">score,</if>
<if test="ivrtext != null ">ivrtext,</if>
<if test="groupName != null ">group_name,</if>
+ <if test="scriptAssortid != null ">script_assortid,</if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name,</if>
+ <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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="scriptno != null">#{scriptno},</if>
@@ -212,7 +241,7 @@
<if test="submoduleVoice != null">#{submoduleVoice},</if>
<if test="noClearlyText != null">#{noClearlyText},</if>
<if test="noClearlyVoice != null">#{noClearlyVoice},</if>
- <if test="categoryName != null">#{categoryName},</if>
+ <if test="scriptAssortname != null">#{scriptAssortname},</if>
<if test="playWavOnly != null">#{playWavOnly},</if>
<if test="valueType != null">#{valueType},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
@@ -239,6 +268,11 @@
<if test="score != null ">#{score},</if>
<if test="ivrtext != null ">#{ivrtext},</if>
<if test="groupName != null ">#{groupName},</if>
+ <if test="scriptAssortid != null ">#{scriptAssortid},</if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">#{dutyDeptName},</if>
+ <if test="dutyDeptCode != null and dutyDeptCode != ''">#{dutyDeptCode},</if>
+ <if test="reportDeptName != null and reportDeptName != ''">#{reportDeptName},</if>
+ <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if>
</trim>
</insert>
@@ -259,7 +293,7 @@
<if test="submoduleVoice != null">submoduleVoice = #{submoduleVoice},</if>
<if test="noClearlyText != null">noClearlyText = #{noClearlyText},</if>
<if test="noClearlyVoice != null">noClearlyVoice = #{noClearlyVoice},</if>
- <if test="categoryName != null">categoryName = #{categoryName},</if>
+ <if test="scriptAssortname != null">script_assortname = #{scriptAssortname},</if>
<if test="playWavOnly != null">playWavOnly = #{playWavOnly},</if>
<if test="valueType != null">value_type = #{valueType},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
@@ -284,9 +318,14 @@
<if test="branchFlag != null and branchFlag != ''">branch_flag = #{branchFlag},</if>
<if test="score != null ">score = #{score},</if>
<if test="groupName != null ">group_name = #{groupName},</if>
+ <if test="scriptAssortid != null ">script_assortid = #{scriptAssortid},</if>
<if test="branchNextscriptno != null and branchNextscriptno != ''">branch_nextscriptno =
#{branchNextscriptno},
</if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name = #{dutyDeptName},</if>
+ <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code = #{dutyDeptCode},</if>
+ <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if>
+ <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if>
</trim>
where id = #{id}
</update>
@@ -304,5 +343,17 @@
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
+
</delete>
+
+ <select id="queryLibTemplateIds" resultMap="IvrLibaTemplateScriptResult">
+ <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>
+ </if>
+ </select>
</mapper>
--
Gitblit v1.9.3