liusheng
2024-05-28 500130efe30180fe635ba4482e097e848d37c7e3
smartor/src/main/resources/mapper/smartor/IvrTasksmsMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.smartor.mapper.IvrTasksmsMapper">
    
    <resultMap type="IvrTasksms" id="IvrTasksmsResult">
    <resultMap type="com.smartor.domain.IvrTasksms" id="IvrTasksmsResult">
        <result property="id"    column="id"    />
        <result property="taskid"    column="taskid"    />
        <result property="type"    column="type"    />
@@ -26,18 +26,40 @@
    </resultMap>
    <sql id="selectIvrTasksmsVo">
        select id, taskid, type, smstemplateid, phonestatusid, smstemplatename, phonestatusname, isdel, content, tagid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_tasksms
        select id,
               taskid,
               type,
               smstemplateid,
               phonestatusid,
               smstemplatename,
               phonestatusname,
               isdel,
               content,
               tagid,
               del_flag,
               update_by,
               update_time,
               create_by,
               create_time,
               isupload,
               upload_time,
               orgid
        from ivr_tasksms
    </sql>
    <select id="selectIvrTasksmsList" parameterType="IvrTasksms" resultMap="IvrTasksmsResult">
    <select id="selectIvrTasksmsList" parameterType="com.smartor.domain.IvrTasksms" resultMap="IvrTasksmsResult">
        <include refid="selectIvrTasksmsVo"/>
        <where>  
            <if test="taskid != null "> and taskid = #{taskid}</if>
            <if test="type != null "> and type = #{type}</if>
            <if test="smstemplateid != null "> and smstemplateid = #{smstemplateid}</if>
            <if test="phonestatusid != null  and phonestatusid != ''"> and phonestatusid = #{phonestatusid}</if>
            <if test="smstemplatename != null  and smstemplatename != ''"> and smstemplatename like concat('%', #{smstemplatename}, '%')</if>
            <if test="phonestatusname != null  and phonestatusname != ''"> and phonestatusname like concat('%', #{phonestatusname}, '%')</if>
            <if test="smstemplatename != null  and smstemplatename != ''">and smstemplatename like concat('%',
                #{smstemplatename}, '%')
            </if>
            <if test="phonestatusname != null  and phonestatusname != ''">and phonestatusname like concat('%',
                #{phonestatusname}, '%')
            </if>
            <if test="isdel != null "> and isdel = #{isdel}</if>
            <if test="content != null  and content != ''"> and content = #{content}</if>
            <if test="tagid != null "> and tagid = #{tagid}</if>
@@ -52,7 +74,7 @@
        where id = #{id}
    </select>
        
    <insert id="insertIvrTasksms" parameterType="IvrTasksms">
    <insert id="insertIvrTasksms" parameterType="com.smartor.domain.IvrTasksms">
        insert into ivr_tasksms
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">id,</if>
@@ -96,7 +118,7 @@
         </trim>
    </insert>
    <update id="updateIvrTasksms" parameterType="IvrTasksms">
    <update id="updateIvrTasksms" parameterType="com.smartor.domain.IvrTasksms">
        update ivr_tasksms
        <trim prefix="SET" suffixOverrides=",">
            <if test="taskid != null">taskid = #{taskid},</if>
@@ -121,7 +143,9 @@
    </update>
    <delete id="deleteIvrTasksmsById" parameterType="Long">
        delete from ivr_tasksms where id = #{id}
        delete
        from ivr_tasksms
        where id = #{id}
    </delete>
    <delete id="deleteIvrTasksmsByIds" parameterType="String">