liusheng
2024-05-28 500130efe30180fe635ba4482e097e848d37c7e3
smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml
@@ -4,7 +4,7 @@
"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"    />
@@ -48,10 +48,51 @@
    </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>
@@ -80,7 +121,9 @@
            <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>
@@ -96,7 +139,7 @@
        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>
@@ -184,7 +227,7 @@
         </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>
@@ -231,7 +274,9 @@
    </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">