From 1ccb709f723a759597dcdc7239d8885cef84d3ce Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 04 十二月 2024 17:56:19 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/IvrTaskTemplateScriptMapper.xml | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrTaskTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrTaskTemplateScriptMapper.xml
index 5da543e..d2aafeb 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrTaskTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrTaskTemplateScriptMapper.xml
@@ -44,13 +44,20 @@
<result property="scriptType" column="script_type"/>
<result property="scriptContent" column="script_content"/>
<result property="sort" column="sort"/>
+ <result property="score" column="score"/>
+ <result property="ivrtext" column="ivrtext"/>
+ <result property="groupName" column="group_name"/>
+ <result property="scriptTopic" column="script_topic"/>
</resultMap>
<sql id="selectIvrTaskTemplateScriptVo">
select id,
taskid,
sort,
+ ivrtext,
script_type,
+ script_topic,
+ score,
branch_flag,
branch_nextscriptno,
next_scriptno,
@@ -74,7 +81,11 @@
resultMap="IvrTaskTemplateScriptResult">
<include refid="selectIvrTaskTemplateScriptVo"/>
<where>
+ del_flag=0
<if test="taskid != null ">and taskid = #{taskid}</if>
+ <if test="score != null ">and score = #{score}</if>
+ <if test="scriptTopic != null ">and script_topic = #{scriptTopic}</if>
+ <if test="ivrtext != null ">and ivrtext = #{ivrtext}</if>
<if test="sort != null ">and sort = #{sort}</if>
<if test="templateID != null ">and templateID = #{templateID}</if>
<if test="questionPoint != null and questionPoint != ''">and questionPoint = #{questionPoint}</if>
@@ -161,6 +172,9 @@
<if test="scriptContent != null and scriptContent != ''">script_content,</if>
<if test="sort != null ">sort,</if>
<if test="nextScriptno != null and nextScriptno != ''">next_scriptno,</if>
+ <if test="score != null ">score,</if>
+ <if test="ivrtext != null ">ivrtext,</if>
+ <if test="scriptTopic != null ">script_topic,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskid != null">#{taskid},</if>
@@ -201,6 +215,9 @@
<if test="scriptContent != null and scriptContent != ''">#{scriptContent},</if>
<if test="sort != null">#{sort},</if>
<if test="nextScriptno != null and nextScriptno != ''">#{nextScriptno},</if>
+ <if test="score != null ">#{score},</if>
+ <if test="ivrtext != null ">#{ivrtext},</if>
+ <if test="scriptTopic != null ">#{scriptTopic},</if>
</trim>
</insert>
@@ -247,18 +264,20 @@
<if test="scriptContent != null and scriptContent != ''">script_content = #{scriptContent},</if>
<if test="sort != null">sort = #{sort},</if>
<if test="nextScriptno != null and nextScriptno != ''">next_scriptno = #{nextScriptno},</if>
+ <if test="score != null">score = #{score},</if>
+ <if test="ivrtext != null">ivrtext = #{ivrtext},</if>
+ <if test="scriptTopic != null ">script_topic = #{scriptTopic},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteIvrTaskTemplateScriptByID" parameterType="Long">
- delete
- from ivr_task_template_script
+ update ivr_task_template_script set del_flag=1
where ID = #{ID}
</delete>
<delete id="deleteIvrTaskTemplateScriptByIDs" parameterType="String">
- delete from ivr_task_template_script where id in
+ update ivr_task_template_script set del_flag=1 where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
--
Gitblit v1.9.3