<?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">
|
<mapper namespace="com.smartor.mapper.IvrTaskcallrecordMapper">
|
|
<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"/>
|
<result property="guid" column="guid"/>
|
</resultMap>
|
|
<sql id="selectIvrTaskcallrecordVo">
|
select uuid,
|
displayno,
|
phone,
|
taskid,
|
guid,
|
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="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>
|
</select>
|
|
<select id="selectIvrTaskcallrecordByUuid" parameterType="String" resultMap="IvrTaskcallrecordResult">
|
<include refid="selectIvrTaskcallrecordVo"/>
|
where uuid = #{uuid}
|
</select>
|
|
<insert id="insertIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord">
|
insert into ivr_taskcallrecord
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="uuid != null">uuid,</if>
|
<if test="displayno != null">displayno,</if>
|
<if test="phone != null">phone,</if>
|
<if test="taskid != null">taskid,</if>
|
<if test="extension != null">extension,</if>
|
<if test="inbound != null">inbound,</if>
|
<if test="direct != null">direct,</if>
|
<if test="answered != null">answered,</if>
|
<if test="assignTime != null">assign_time,</if>
|
<if test="startTime != null">start_time,</if>
|
<if test="answerTime != null">answer_time,</if>
|
<if test="hangupTime != null">hangup_time,</if>
|
<if test="endTime != null">end_time,</if>
|
<if test="recordPath != null">record_path,</if>
|
<if test="recordUrl != null">record_url,</if>
|
<if test="hangupSipcode != null">hangup_sipcode,</if>
|
<if test="hangupCause != null">hangup_cause,</if>
|
<if test="transfered != null">transfered,</if>
|
<if test="transUuid != null">trans_uuid,</if>
|
<if test="transPhone != null">trans_phone,</if>
|
<if test="transAnswered != null">trans_answered,</if>
|
<if test="transStartTime != null">trans_start_time,</if>
|
<if test="transAnswerTime != null">trans_answer_time,</if>
|
<if test="earlyAsrtext != null">early_asrtext,</if>
|
<if test="earlyPath != null">early_path,</if>
|
<if test="earlyUrl != null">early_url,</if>
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
<if test="updateBy != null">update_by,</if>
|
<if test="updateTime != null">update_time,</if>
|
<if test="createBy != null">create_by,</if>
|
<if test="createTime != null">create_time,</if>
|
<if test="isupload != null">isupload,</if>
|
<if test="uploadTime != null">upload_time,</if>
|
<if test="orgid != null">orgid,</if>
|
<if test="guid != null">guid,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="uuid != null">#{uuid},</if>
|
<if test="displayno != null">#{displayno},</if>
|
<if test="phone != null">#{phone},</if>
|
<if test="taskid != null">#{taskid},</if>
|
<if test="extension != null">#{extension},</if>
|
<if test="inbound != null">#{inbound},</if>
|
<if test="direct != null">#{direct},</if>
|
<if test="answered != null">#{answered},</if>
|
<if test="assignTime != null">#{assignTime},</if>
|
<if test="startTime != null">#{startTime},</if>
|
<if test="answerTime != null">#{answerTime},</if>
|
<if test="hangupTime != null">#{hangupTime},</if>
|
<if test="endTime != null">#{endTime},</if>
|
<if test="recordPath != null">#{recordPath},</if>
|
<if test="recordUrl != null">#{recordUrl},</if>
|
<if test="hangupSipcode != null">#{hangupSipcode},</if>
|
<if test="hangupCause != null">#{hangupCause},</if>
|
<if test="transfered != null">#{transfered},</if>
|
<if test="transUuid != null">#{transUuid},</if>
|
<if test="transPhone != null">#{transPhone},</if>
|
<if test="transAnswered != null">#{transAnswered},</if>
|
<if test="transStartTime != null">#{transStartTime},</if>
|
<if test="transAnswerTime != null">#{transAnswerTime},</if>
|
<if test="earlyAsrtext != null">#{earlyAsrtext},</if>
|
<if test="earlyPath != null">#{earlyPath},</if>
|
<if test="earlyUrl != null">#{earlyUrl},</if>
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
<if test="updateBy != null">#{updateBy},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
<if test="createBy != null">#{createBy},</if>
|
<if test="createTime != null">#{createTime},</if>
|
<if test="isupload != null">#{isupload},</if>
|
<if test="uploadTime != null">#{uploadTime},</if>
|
<if test="orgid != null">#{orgid},</if>
|
<if test="guid != null">#{guid},</if>
|
</trim>
|
</insert>
|
|
<update id="updateIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord">
|
update ivr_taskcallrecord
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="displayno != null">displayno = #{displayno},</if>
|
<if test="phone != null">phone = #{phone},</if>
|
<if test="taskid != null">taskid = #{taskid},</if>
|
<if test="extension != null">extension = #{extension},</if>
|
<if test="inbound != null">inbound = #{inbound},</if>
|
<if test="direct != null">direct = #{direct},</if>
|
<if test="answered != null">answered = #{answered},</if>
|
<if test="assignTime != null">assign_time = #{assignTime},</if>
|
<if test="startTime != null">start_time = #{startTime},</if>
|
<if test="answerTime != null">answer_time = #{answerTime},</if>
|
<if test="hangupTime != null">hangup_time = #{hangupTime},</if>
|
<if test="endTime != null">end_time = #{endTime},</if>
|
<if test="recordPath != null">record_path = #{recordPath},</if>
|
<if test="recordUrl != null">record_url = #{recordUrl},</if>
|
<if test="hangupSipcode != null">hangup_sipcode = #{hangupSipcode},</if>
|
<if test="hangupCause != null">hangup_cause = #{hangupCause},</if>
|
<if test="transfered != null">transfered = #{transfered},</if>
|
<if test="transUuid != null">trans_uuid = #{transUuid},</if>
|
<if test="transPhone != null">trans_phone = #{transPhone},</if>
|
<if test="transAnswered != null">trans_answered = #{transAnswered},</if>
|
<if test="transStartTime != null">trans_start_time = #{transStartTime},</if>
|
<if test="transAnswerTime != null">trans_answer_time = #{transAnswerTime},</if>
|
<if test="earlyAsrtext != null">early_asrtext = #{earlyAsrtext},</if>
|
<if test="earlyPath != null">early_path = #{earlyPath},</if>
|
<if test="earlyUrl != null">early_url = #{earlyUrl},</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="createTime != null">create_time = #{createTime},</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="guid != null">guid = #{guid},</if>
|
</trim>
|
where uuid = #{uuid}
|
</update>
|
|
<delete id="deleteIvrTaskcallrecordByUuid" parameterType="String">
|
delete
|
from ivr_taskcallrecord
|
where uuid = #{uuid}
|
</delete>
|
|
<delete id="deleteIvrTaskcallrecordByUuids" parameterType="String">
|
delete from ivr_taskcallrecord where uuid in
|
<foreach item="uuid" collection="array" open="(" separator="," close=")">
|
#{uuid}
|
</foreach>
|
</delete>
|
</mapper>
|