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/ServiceSubtaskDetailMapper.xml |  100 +++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 95 insertions(+), 5 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
index dc782d3..913f6b6 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
@@ -7,6 +7,7 @@
     <resultMap type="com.smartor.domain.ServiceSubtaskDetail" id="ServiceSubtaskDetailResult">
         <result property="id" column="id"/>
         <result property="subId" column="sub_id"/>
+        <result property="taskid" column="taskid"/>
         <result property="uuid" column="uuid"/>
         <result property="phone" column="phone"/>
         <result property="operate" column="operate"/>
@@ -46,11 +47,22 @@
         <result property="updateTime" column="update_time"/>
         <result property="createBy" column="create_by"/>
         <result property="valueType" column="value_type"/>
+        <result property="scriptid" column="scriptid"/>
+        <result property="answerps" column="answerps"/>
+        <result property="comment" column="comment"/>
+        <result property="patid" column="patid"/>
+        <result property="extemplateText" column="extemplate_text"/>
     </resultMap>
 
     <sql id="selectServiceSubtaskDetailVo">
         select id,
                sub_id,
+               answerps,
+               scriptid,
+               extemplate_text,
+               comment,
+               patid,
+               taskid,
                uuid,
                phone,
                operate,
@@ -90,7 +102,7 @@
                update_time,
                value_type,
                create_by
-        from ivr_taskcalldetail
+        from service_subtask_detail
     </sql>
 
     <select id="selectServiceSubtaskDetailList" parameterType="com.smartor.domain.ServiceSubtaskDetail"
@@ -98,6 +110,8 @@
         <include refid="selectServiceSubtaskDetailVo"/>
         <where>
             <if test="subId != null">and sub_id = #{subId}</if>
+            <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if>
+            <if test="taskid != null">and taskid = #{taskid}</if>
             <if test="uuid != null  and uuid != ''">and uuid = #{uuid}</if>
             <if test="phone != null  and phone != ''">and phone = #{phone}</if>
             <if test="operate != null  and operate != ''">and operate = #{operate}</if>
@@ -134,6 +148,10 @@
             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
             <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
             <if test="valueType != null  and valueType != ''">and value_type = #{valueType}</if>
+            <if test="answerps != null  and answerps != ''">and answerps = #{answerps}</if>
+            <if test="comment != null  and comment != ''">and comment = #{comment}</if>
+            <if test="scriptid != null ">and scriptid = #{scriptid}</if>
+            <if test=" patid != null">and patid = #{patid}</if>
         </where>
     </select>
 
@@ -143,10 +161,11 @@
     </select>
 
     <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail">
-        insert into ivr_taskcalldetail
+        insert into service_subtask_detail
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
             <if test="subId != null">sub_id,</if>
+            <if test="taskid != null">taskid,</if>
             <if test="uuid != null">uuid,</if>
             <if test="phone != null">phone,</if>
             <if test="operate != null">operate,</if>
@@ -186,10 +205,16 @@
             <if test="updateTime != null">update_time,</if>
             <if test="createBy != null">create_by,</if>
             <if test="valueType != null">value_type,</if>
+            <if test="answerps != null  and answerps != ''">answerps,</if>
+            <if test="comment != null  and comment != ''">comment,</if>
+            <if test="scriptid != null ">scriptid,</if>
+            <if test=" patid != null">patid,</if>
+            <if test=" extemplateText != null">extemplate_text,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
             <if test="subId != null">#{subId},</if>
+            <if test="taskid != null">#{taskid},</if>
             <if test="uuid != null">#{uuid},</if>
             <if test="phone != null">#{phone},</if>
             <if test="operate != null">#{operate},</if>
@@ -229,13 +254,19 @@
             <if test="updateTime != null">#{updateTime},</if>
             <if test="createBy != null">#{createBy},</if>
             <if test="valueType != null">#{valueType},</if>
+            <if test="answerps != null  and answerps != ''">#{answerps},</if>
+            <if test="comment != null  and comment != ''">#{comment},</if>
+            <if test="scriptid != null ">#{scriptid},</if>
+            <if test=" patid != null">#{patid},</if>
+            <if test=" extemplateText != null">#{extemplateText},</if>
         </trim>
     </insert>
 
     <update id="updateServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail">
-        update ivr_taskcalldetail
+        update service_subtask_detail
         <trim prefix="SET" suffixOverrides=",">
             <if test="subId != null">sub_id = #{subId},</if>
+            <if test="taskid != null">taskid = #{taskid},</if>
             <if test="uuid != null">uuid = #{uuid},</if>
             <if test="phone != null">phone = #{phone},</if>
             <if test="operate != null">operate = #{operate},</if>
@@ -275,18 +306,77 @@
             <if test="updateTime != null">update_time = #{updateTime},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="valueType != null">value_type = #{valueType},</if>
+            <if test="answerps != null  and answerps != ''">answerps = #{answerps},</if>
+            <if test="comment != null  and comment != ''">comment = #{comment},</if>
+            <if test="scriptid != null ">scriptid = #{scriptid},</if>
+            <if test=" patid != null">patid = #{patid},</if>
+            <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if>
         </trim>
         where id = #{id}
     </update>
 
+
+    <update id="updateSSDByCondition" parameterType="com.smartor.domain.ServiceSubtaskDetail">
+        update service_subtask_detail
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="subId != null">sub_id = #{subId},</if>
+            <if test="taskid != null">taskid = #{taskid},</if>
+            <if test="uuid != null">uuid = #{uuid},</if>
+            <if test="phone != null">phone = #{phone},</if>
+            <if test="operate != null">operate = #{operate},</if>
+            <if test="displayno != null">displayno = #{displayno},</if>
+            <if test="inbound != null">inbound = #{inbound},</if>
+            <if test="incoming != null">incoming = #{incoming},</if>
+            <if test="assigntime != null">assigntime = #{assigntime},</if>
+            <if test="starttime != null">starttime = #{starttime},</if>
+            <if test="answertime != null">answertime = #{answertime},</if>
+            <if test="silent != null">silent = #{silent},</if>
+            <if test="dtmfKey != null">dtmf_key = #{dtmfKey},</if>
+            <if test="musicpath != null">musicpath = #{musicpath},</if>
+            <if test="sentIndex != null">sent_index = #{sentIndex},</if>
+            <if test="sentBegin != null">sent_begin = #{sentBegin},</if>
+            <if test="asrtext != null">asrtext = #{asrtext},</if>
+            <if test="beginTime != null">begin_time = #{beginTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="sentEnd != null">sent_end = #{sentEnd},</if>
+            <if test="recordpath != null">recordpath = #{recordpath},</if>
+            <if test="recordurl != null">recordurl = #{recordurl},</if>
+            <if test="templateid != null">templateid = #{templateid},</if>
+            <if test="templatequestionnum != null">templatequestionnum = #{templatequestionnum},</if>
+            <if test="switchid != null">switchid = #{switchid},</if>
+            <if test="questiontext != null">questiontext = #{questiontext},</if>
+            <if test="questionvoice != null">questionvoice = #{questionvoice},</if>
+            <if test="categoryname != null">categoryname = #{categoryname},</if>
+            <if test="targetoptions != null">targetoptions = #{targetoptions},</if>
+            <if test="targetvalue != null">targetvalue = #{targetvalue},</if>
+            <if test="matchedtext != null">matchedtext = #{matchedtext},</if>
+            <if test="addtime != null">addtime = #{addtime},</if>
+            <if test="isupload != null">isupload = #{isupload},</if>
+            <if test="uploadTime != null">upload_time = #{uploadTime},</if>
+            <if test="orgid != null">orgid = #{orgid},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="valueType != null">value_type = #{valueType},</if>
+            <if test="answerps != null  and answerps != ''">answerps = #{answerps},</if>
+            <if test="comment != null  and comment != ''">comment = #{comment},</if>
+            <if test="scriptid != null ">scriptid = #{scriptid},</if>
+            <if test=" patid != null">patid = #{patid},</if>
+            <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if>
+        </trim>
+        where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId}
+    </update>
+
     <delete id="deleteServiceSubtaskDetailByCalldetailid" parameterType="String">
         delete
-        from ivr_taskcalldetail
+        from service_subtask_detail
         where id = #{id}
     </delete>
 
     <delete id="deleteServiceSubtaskDetailByCalldetailids" parameterType="String">
-        delete from ivr_taskcalldetail where id in
+        delete from service_subtask_detail where id in
         <foreach item="id" collection="array" open="(" separator="," close=")">
             #{id}
         </foreach>

--
Gitblit v1.9.3