| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrTaskcalldetailMapper"> |
| | | |
| | | <resultMap type="IvrTaskcalldetail" id="IvrTaskcalldetailResult"> |
| | | <resultMap type="com.smartor.domain.IvrTaskcalldetail" id="IvrTaskcalldetailResult"> |
| | | <result property="calldetailid" column="calldetailid" /> |
| | | <result property="callid" column="callid" /> |
| | | <result property="uuid" column="uuid" /> |
| | |
| | | </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, |
| | | 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="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="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> |
| | |
| | | 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> |
| | |
| | | </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> |
| | |
| | | </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"> |