From a5e17e09ce2426ceca8362248bb5e46605bd35d6 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 04 七月 2024 20:26:18 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml | 231 +++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 141 insertions(+), 90 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml index da577d2..2502583 100644 --- a/smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml @@ -1,102 +1,148 @@ <?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.IvrTaskcalldetailMapper"> - - <resultMap type="IvrTaskcalldetail" id="IvrTaskcalldetailResult"> - <result property="calldetailid" column="calldetailid" /> - <result property="callid" column="callid" /> - <result property="uuid" column="uuid" /> - <result property="phone" column="phone" /> - <result property="operate" column="operate" /> - <result property="displayno" column="displayno" /> - <result property="inbound" column="inbound" /> - <result property="incoming" column="incoming" /> - <result property="assigntime" column="assigntime" /> - <result property="starttime" column="starttime" /> - <result property="answertime" column="answertime" /> - <result property="silent" column="silent" /> - <result property="dtmfKey" column="dtmf_key" /> - <result property="musicpath" column="musicpath" /> - <result property="sentIndex" column="sent_index" /> - <result property="sentBegin" column="sent_begin" /> - <result property="asrtext" column="asrtext" /> - <result property="beginTime" column="begin_time" /> - <result property="endTime" column="end_time" /> - <result property="sentEnd" column="sent_end" /> - <result property="recordpath" column="recordpath" /> - <result property="recordurl" column="recordurl" /> - <result property="templateid" column="templateid" /> - <result property="templatequestionnum" column="templatequestionnum" /> - <result property="switchid" column="switchid" /> - <result property="questiontext" column="questiontext" /> - <result property="questionvoice" column="questionvoice" /> - <result property="categoryname" column="categoryname" /> - <result property="targetoptions" column="targetoptions" /> - <result property="targetvalue" column="targetvalue" /> - <result property="matchedtext" column="matchedtext" /> - <result property="addtime" column="addtime" /> - <result property="isupload" column="isupload" /> - <result property="uploadTime" column="upload_time" /> - <result property="orgid" column="orgid" /> - <result property="createTime" column="create_time" /> - <result property="delFlag" column="del_flag" /> - <result property="updateBy" column="update_by" /> - <result property="updateTime" column="update_time" /> - <result property="createBy" column="create_by" /> + + <resultMap type="com.smartor.domain.IvrTaskcalldetail" id="IvrTaskcalldetailResult"> + <result property="calldetailid" column="calldetailid"/> + <result property="callid" column="callid"/> + <result property="uuid" column="uuid"/> + <result property="phone" column="phone"/> + <result property="operate" column="operate"/> + <result property="displayno" column="displayno"/> + <result property="inbound" column="inbound"/> + <result property="incoming" column="incoming"/> + <result property="assigntime" column="assigntime"/> + <result property="starttime" column="starttime"/> + <result property="answertime" column="answertime"/> + <result property="silent" column="silent"/> + <result property="dtmfKey" column="dtmf_key"/> + <result property="musicpath" column="musicpath"/> + <result property="sentIndex" column="sent_index"/> + <result property="sentBegin" column="sent_begin"/> + <result property="asrtext" column="asrtext"/> + <result property="beginTime" column="begin_time"/> + <result property="endTime" column="end_time"/> + <result property="sentEnd" column="sent_end"/> + <result property="recordpath" column="recordpath"/> + <result property="recordurl" column="recordurl"/> + <result property="templateid" column="templateid"/> + <result property="templatequestionnum" column="templatequestionnum"/> + <result property="switchid" column="switchid"/> + <result property="questiontext" column="questiontext"/> + <result property="questionvoice" column="questionvoice"/> + <result property="categoryname" column="categoryname"/> + <result property="targetoptions" column="targetoptions"/> + <result property="targetvalue" column="targetvalue"/> + <result property="matchedtext" column="matchedtext"/> + <result property="addtime" column="addtime"/> + <result property="isupload" column="isupload"/> + <result property="uploadTime" column="upload_time"/> + <result property="orgid" column="orgid"/> + <result property="createTime" column="create_time"/> + <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="valueType" column="value_type"/> </resultMap> <sql id="selectIvrTaskcalldetailVo"> - select calldetailid, callid, uuid, phone, operate, displayno, inbound, incoming, assigntime, starttime, answertime, silent, dtmf_key, musicpath, sent_index, sent_begin, asrtext, begin_time, end_time, sent_end, recordpath, recordurl, templateid, templatequestionnum, switchid, questiontext, questionvoice, categoryname, targetoptions, targetvalue, matchedtext, addtime, isupload, upload_time, orgid, create_time, del_flag, update_by, update_time, create_by from ivr_taskcalldetail + select calldetailid, + callid, + uuid, + phone, + operate, + displayno, + inbound, + incoming, + assigntime, + starttime, + answertime, + silent, + dtmf_key, + musicpath, + sent_index, + sent_begin, + asrtext, + begin_time, + end_time, + sent_end, + recordpath, + recordurl, + templateid, + templatequestionnum, + switchid, + questiontext, + questionvoice, + categoryname, + targetoptions, + targetvalue, + matchedtext, + addtime, + isupload, + upload_time, + orgid, + create_time, + del_flag, + update_by, + update_time, + value_type, + create_by + from ivr_taskcalldetail </sql> - <select id="selectIvrTaskcalldetailList" parameterType="IvrTaskcalldetail" resultMap="IvrTaskcalldetailResult"> + <select id="selectIvrTaskcalldetailList" parameterType="com.smartor.domain.IvrTaskcalldetail" + resultMap="IvrTaskcalldetailResult"> <include refid="selectIvrTaskcalldetailVo"/> - <where> - <if test="callid != null and callid != ''"> and callid = #{callid}</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> - <if test="displayno != null and displayno != ''"> and displayno = #{displayno}</if> - <if test="inbound != null "> and inbound = #{inbound}</if> - <if test="incoming != null "> and incoming = #{incoming}</if> - <if test="assigntime != null "> and assigntime = #{assigntime}</if> - <if test="starttime != null "> and starttime = #{starttime}</if> - <if test="answertime != null "> and answertime = #{answertime}</if> - <if test="silent != null "> and silent = #{silent}</if> - <if test="dtmfKey != null and dtmfKey != ''"> and dtmf_key = #{dtmfKey}</if> - <if test="musicpath != null and musicpath != ''"> and musicpath = #{musicpath}</if> - <if test="sentIndex != null "> and sent_index = #{sentIndex}</if> - <if test="sentBegin != null "> and sent_begin = #{sentBegin}</if> - <if test="asrtext != null and asrtext != ''"> and asrtext = #{asrtext}</if> - <if test="beginTime != null "> and begin_time = #{beginTime}</if> - <if test="endTime != null "> and end_time = #{endTime}</if> - <if test="sentEnd != null "> and sent_end = #{sentEnd}</if> - <if test="recordpath != null and recordpath != ''"> and recordpath = #{recordpath}</if> - <if test="recordurl != null and recordurl != ''"> and recordurl = #{recordurl}</if> - <if test="templateid != null and templateid != ''"> and templateid = #{templateid}</if> - <if test="templatequestionnum != null "> and templatequestionnum = #{templatequestionnum}</if> - <if test="switchid != null "> and switchid = #{switchid}</if> - <if test="questiontext != null and questiontext != ''"> and questiontext = #{questiontext}</if> - <if test="questionvoice != null and questionvoice != ''"> and questionvoice = #{questionvoice}</if> - <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> - <if test="targetoptions != null and targetoptions != ''"> and targetoptions = #{targetoptions}</if> - <if test="targetvalue != null and targetvalue != ''"> and targetvalue = #{targetvalue}</if> - <if test="matchedtext != null and matchedtext != ''"> and matchedtext = #{matchedtext}</if> - <if test="addtime != null "> and addtime = #{addtime}</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="callid != null and callid != ''">and callid = #{callid}</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> + <if test="displayno != null and displayno != ''">and displayno = #{displayno}</if> + <if test="inbound != null ">and inbound = #{inbound}</if> + <if test="incoming != null ">and incoming = #{incoming}</if> + <if test="assigntime != null ">and assigntime = #{assigntime}</if> + <if test="starttime != null ">and starttime = #{starttime}</if> + <if test="answertime != null ">and answertime = #{answertime}</if> + <if test="silent != null ">and silent = #{silent}</if> + <if test="dtmfKey != null and dtmfKey != ''">and dtmf_key = #{dtmfKey}</if> + <if test="musicpath != null and musicpath != ''">and musicpath = #{musicpath}</if> + <if test="sentIndex != null ">and sent_index = #{sentIndex}</if> + <if test="sentBegin != null ">and sent_begin = #{sentBegin}</if> + <if test="asrtext != null and asrtext != ''">and asrtext = #{asrtext}</if> + <if test="beginTime != null ">and begin_time = #{beginTime}</if> + <if test="endTime != null ">and end_time = #{endTime}</if> + <if test="sentEnd != null ">and sent_end = #{sentEnd}</if> + <if test="recordpath != null and recordpath != ''">and recordpath = #{recordpath}</if> + <if test="recordurl != null and recordurl != ''">and recordurl = #{recordurl}</if> + <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> + <if test="templatequestionnum != null ">and templatequestionnum = #{templatequestionnum}</if> + <if test="switchid != null ">and switchid = #{switchid}</if> + <if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if> + <if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if> + <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, + '%') + </if> + <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> + <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> + <if test="matchedtext != null and matchedtext != ''">and matchedtext = #{matchedtext}</if> + <if test="addtime != null ">and addtime = #{addtime}</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="valueType != null and valueType != ''">and value_type = #{valueType}</if> </where> </select> - + <select id="selectIvrTaskcalldetailByCalldetailid" parameterType="String" resultMap="IvrTaskcalldetailResult"> <include refid="selectIvrTaskcalldetailVo"/> where calldetailid = #{calldetailid} </select> - - <insert id="insertIvrTaskcalldetail" parameterType="IvrTaskcalldetail"> + + <insert id="insertIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> insert into ivr_taskcalldetail <trim prefix="(" suffix=")" suffixOverrides=","> <if test="calldetailid != null">calldetailid,</if> @@ -139,7 +185,8 @@ <if test="updateBy != null">update_by,</if> <if test="updateTime != null">update_time,</if> <if test="createBy != null">create_by,</if> - </trim> + <if test="valueType != null">value_type,</if> + </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="calldetailid != null">#{calldetailid},</if> <if test="callid != null">#{callid},</if> @@ -181,10 +228,11 @@ <if test="updateBy != null">#{updateBy},</if> <if test="updateTime != null">#{updateTime},</if> <if test="createBy != null">#{createBy},</if> - </trim> + <if test="valueType != null">#{valueType},</if> + </trim> </insert> - <update id="updateIvrTaskcalldetail" parameterType="IvrTaskcalldetail"> + <update id="updateIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> update ivr_taskcalldetail <trim prefix="SET" suffixOverrides=","> <if test="callid != null">callid = #{callid},</if> @@ -226,18 +274,21 @@ <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> </trim> where calldetailid = #{calldetailid} </update> <delete id="deleteIvrTaskcalldetailByCalldetailid" parameterType="String"> - delete from ivr_taskcalldetail where calldetailid = #{calldetailid} + delete + from ivr_taskcalldetail + where calldetailid = #{calldetailid} </delete> <delete id="deleteIvrTaskcalldetailByCalldetailids" parameterType="String"> - delete from ivr_taskcalldetail where calldetailid in + delete from ivr_taskcalldetail where calldetailid in <foreach item="calldetailid" collection="array" open="(" separator="," close=")"> #{calldetailid} </foreach> </delete> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3