From 0ff7a8f69570b3fc7418c35f3d6e273ef4f73f20 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 26 七月 2024 10:35:10 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/IvrTaskcallrecordMapper.xml | 193 ++++++++++++++++++++++++++++-------------------
1 files changed, 115 insertions(+), 78 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrTaskcallrecordMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrTaskcallrecordMapper.xml
index b07f965..6de2180 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrTaskcallrecordMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrTaskcallrecordMapper.xml
@@ -1,90 +1,125 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.smartor.mapper.IvrTaskcallrecordMapper">
-
- <resultMap type="IvrTaskcallrecord" id="IvrTaskcallrecordResult">
- <result property="uuid" column="uuid" />
- <result property="displayno" column="displayno" />
- <result property="phone" column="phone" />
- <result property="taskid" column="taskid" />
- <result property="extension" column="extension" />
- <result property="inbound" column="inbound" />
- <result property="direct" column="direct" />
- <result property="answered" column="answered" />
- <result property="assignTime" column="assign_time" />
- <result property="startTime" column="start_time" />
- <result property="answerTime" column="answer_time" />
- <result property="hangupTime" column="hangup_time" />
- <result property="endTime" column="end_time" />
- <result property="recordPath" column="record_path" />
- <result property="recordUrl" column="record_url" />
- <result property="hangupSipcode" column="hangup_sipcode" />
- <result property="hangupCause" column="hangup_cause" />
- <result property="transfered" column="transfered" />
- <result property="transUuid" column="trans_uuid" />
- <result property="transPhone" column="trans_phone" />
- <result property="transAnswered" column="trans_answered" />
- <result property="transStartTime" column="trans_start_time" />
- <result property="transAnswerTime" column="trans_answer_time" />
- <result property="earlyAsrtext" column="early_asrtext" />
- <result property="earlyPath" column="early_path" />
- <result property="earlyUrl" column="early_url" />
- <result property="delFlag" column="del_flag" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="isupload" column="isupload" />
- <result property="uploadTime" column="upload_time" />
- <result property="orgid" column="orgid" />
+
+ <resultMap type="com.smartor.domain.IvrTaskcallrecord" id="IvrTaskcallrecordResult">
+ <result property="uuid" column="uuid"/>
+ <result property="displayno" column="displayno"/>
+ <result property="phone" column="phone"/>
+ <result property="taskid" column="taskid"/>
+ <result property="extension" column="extension"/>
+ <result property="inbound" column="inbound"/>
+ <result property="direct" column="direct"/>
+ <result property="answered" column="answered"/>
+ <result property="assignTime" column="assign_time"/>
+ <result property="startTime" column="start_time"/>
+ <result property="answerTime" column="answer_time"/>
+ <result property="hangupTime" column="hangup_time"/>
+ <result property="endTime" column="end_time"/>
+ <result property="recordPath" column="record_path"/>
+ <result property="recordUrl" column="record_url"/>
+ <result property="hangupSipcode" column="hangup_sipcode"/>
+ <result property="hangupCause" column="hangup_cause"/>
+ <result property="transfered" column="transfered"/>
+ <result property="transUuid" column="trans_uuid"/>
+ <result property="transPhone" column="trans_phone"/>
+ <result property="transAnswered" column="trans_answered"/>
+ <result property="transStartTime" column="trans_start_time"/>
+ <result property="transAnswerTime" column="trans_answer_time"/>
+ <result property="earlyAsrtext" column="early_asrtext"/>
+ <result property="earlyPath" column="early_path"/>
+ <result property="earlyUrl" column="early_url"/>
+ <result property="delFlag" column="del_flag"/>
+ <result property="updateBy" column="update_by"/>
+ <result property="updateTime" column="update_time"/>
+ <result property="createBy" column="create_by"/>
+ <result property="createTime" column="create_time"/>
+ <result property="isupload" column="isupload"/>
+ <result property="uploadTime" column="upload_time"/>
+ <result property="orgid" column="orgid"/>
</resultMap>
<sql id="selectIvrTaskcallrecordVo">
- select uuid, displayno, phone, taskid, extension, inbound, direct, answered, assign_time, start_time, answer_time, hangup_time, end_time, record_path, record_url, hangup_sipcode, hangup_cause, transfered, trans_uuid, trans_phone, trans_answered, trans_start_time, trans_answer_time, early_asrtext, early_path, early_url, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_taskcallrecord
+ select uuid,
+ displayno,
+ phone,
+ taskid,
+ extension,
+ inbound,
+ direct,
+ answered,
+ assign_time,
+ start_time,
+ answer_time,
+ hangup_time,
+ end_time,
+ record_path,
+ record_url,
+ hangup_sipcode,
+ hangup_cause,
+ transfered,
+ trans_uuid,
+ trans_phone,
+ trans_answered,
+ trans_start_time,
+ trans_answer_time,
+ early_asrtext,
+ early_path,
+ early_url,
+ del_flag,
+ update_by,
+ update_time,
+ create_by,
+ create_time,
+ isupload,
+ upload_time,
+ orgid
+ from ivr_taskcallrecord
</sql>
- <select id="selectIvrTaskcallrecordList" parameterType="IvrTaskcallrecord" resultMap="IvrTaskcallrecordResult">
+ <select id="selectIvrTaskcallrecordList" parameterType="com.smartor.domain.IvrTaskcallrecord"
+ resultMap="IvrTaskcallrecordResult">
<include refid="selectIvrTaskcallrecordVo"/>
- <where>
- <if test="displayno != null and displayno != ''"> and displayno = #{displayno}</if>
- <if test="phone != null and phone != ''"> and phone = #{phone}</if>
- <if test="taskid != null and taskid != ''"> and taskid = #{taskid}</if>
- <if test="extension != null and extension != ''"> and extension = #{extension}</if>
- <if test="inbound != null "> and inbound = #{inbound}</if>
- <if test="direct != null "> and direct = #{direct}</if>
- <if test="answered != null "> and answered = #{answered}</if>
- <if test="assignTime != null "> and assign_time = #{assignTime}</if>
- <if test="startTime != null "> and start_time = #{startTime}</if>
- <if test="answerTime != null "> and answer_time = #{answerTime}</if>
- <if test="hangupTime != null "> and hangup_time = #{hangupTime}</if>
- <if test="endTime != null "> and end_time = #{endTime}</if>
- <if test="recordPath != null and recordPath != ''"> and record_path = #{recordPath}</if>
- <if test="recordUrl != null and recordUrl != ''"> and record_url = #{recordUrl}</if>
- <if test="hangupSipcode != null "> and hangup_sipcode = #{hangupSipcode}</if>
- <if test="hangupCause != null and hangupCause != ''"> and hangup_cause = #{hangupCause}</if>
- <if test="transfered != null "> and transfered = #{transfered}</if>
- <if test="transUuid != null and transUuid != ''"> and trans_uuid = #{transUuid}</if>
- <if test="transPhone != null and transPhone != ''"> and trans_phone = #{transPhone}</if>
- <if test="transAnswered != null "> and trans_answered = #{transAnswered}</if>
- <if test="transStartTime != null "> and trans_start_time = #{transStartTime}</if>
- <if test="transAnswerTime != null "> and trans_answer_time = #{transAnswerTime}</if>
- <if test="earlyAsrtext != null and earlyAsrtext != ''"> and early_asrtext = #{earlyAsrtext}</if>
- <if test="earlyPath != null and earlyPath != ''"> and early_path = #{earlyPath}</if>
- <if test="earlyUrl != null and earlyUrl != ''"> and early_url = #{earlyUrl}</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>
+ <where>
+ <if test="displayno != null and displayno != ''">and displayno = #{displayno}</if>
+ <if test="phone != null and phone != ''">and phone = #{phone}</if>
+ <if test="taskid != null and taskid != ''">and taskid = #{taskid}</if>
+ <if test="extension != null and extension != ''">and extension = #{extension}</if>
+ <if test="inbound != null ">and inbound = #{inbound}</if>
+ <if test="direct != null ">and direct = #{direct}</if>
+ <if test="answered != null ">and answered = #{answered}</if>
+ <if test="assignTime != null ">and assign_time = #{assignTime}</if>
+ <if test="startTime != null ">and start_time = #{startTime}</if>
+ <if test="answerTime != null ">and answer_time = #{answerTime}</if>
+ <if test="hangupTime != null ">and hangup_time = #{hangupTime}</if>
+ <if test="endTime != null ">and end_time = #{endTime}</if>
+ <if test="recordPath != null and recordPath != ''">and record_path = #{recordPath}</if>
+ <if test="recordUrl != null and recordUrl != ''">and record_url = #{recordUrl}</if>
+ <if test="hangupSipcode != null ">and hangup_sipcode = #{hangupSipcode}</if>
+ <if test="hangupCause != null and hangupCause != ''">and hangup_cause = #{hangupCause}</if>
+ <if test="transfered != null ">and transfered = #{transfered}</if>
+ <if test="transUuid != null and transUuid != ''">and trans_uuid = #{transUuid}</if>
+ <if test="transPhone != null and transPhone != ''">and trans_phone = #{transPhone}</if>
+ <if test="transAnswered != null ">and trans_answered = #{transAnswered}</if>
+ <if test="transStartTime != null ">and trans_start_time = #{transStartTime}</if>
+ <if test="transAnswerTime != null ">and trans_answer_time = #{transAnswerTime}</if>
+ <if test="earlyAsrtext != null and earlyAsrtext != ''">and early_asrtext = #{earlyAsrtext}</if>
+ <if test="earlyPath != null and earlyPath != ''">and early_path = #{earlyPath}</if>
+ <if test="earlyUrl != null and earlyUrl != ''">and early_url = #{earlyUrl}</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>
</where>
</select>
-
+
<select id="selectIvrTaskcallrecordByUuid" parameterType="String" resultMap="IvrTaskcallrecordResult">
<include refid="selectIvrTaskcallrecordVo"/>
where uuid = #{uuid}
</select>
-
- <insert id="insertIvrTaskcallrecord" parameterType="IvrTaskcallrecord">
+
+ <insert id="insertIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord">
insert into ivr_taskcallrecord
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uuid != null">uuid,</if>
@@ -121,7 +156,7 @@
<if test="isupload != null">isupload,</if>
<if test="uploadTime != null">upload_time,</if>
<if test="orgid != null">orgid,</if>
- </trim>
+ </trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uuid != null">#{uuid},</if>
<if test="displayno != null">#{displayno},</if>
@@ -157,10 +192,10 @@
<if test="isupload != null">#{isupload},</if>
<if test="uploadTime != null">#{uploadTime},</if>
<if test="orgid != null">#{orgid},</if>
- </trim>
+ </trim>
</insert>
- <update id="updateIvrTaskcallrecord" parameterType="IvrTaskcallrecord">
+ <update id="updateIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord">
update ivr_taskcallrecord
<trim prefix="SET" suffixOverrides=",">
<if test="displayno != null">displayno = #{displayno},</if>
@@ -201,13 +236,15 @@
</update>
<delete id="deleteIvrTaskcallrecordByUuid" parameterType="String">
- delete from ivr_taskcallrecord where uuid = #{uuid}
+ delete
+ from ivr_taskcallrecord
+ where uuid = #{uuid}
</delete>
<delete id="deleteIvrTaskcallrecordByUuids" parameterType="String">
- delete from ivr_taskcallrecord where uuid in
+ delete from ivr_taskcallrecord where uuid in
<foreach item="uuid" collection="array" open="(" separator="," close=")">
#{uuid}
</foreach>
</delete>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.9.3