| | |
| | | <?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.IvrTasksmsMapper"> |
| | | |
| | | <resultMap type="IvrTasksms" id="IvrTasksmsResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="type" column="type" /> |
| | | <result property="smstemplateid" column="smstemplateid" /> |
| | | <result property="phonestatusid" column="phonestatusid" /> |
| | | <result property="smstemplatename" column="smstemplatename" /> |
| | | <result property="phonestatusname" column="phonestatusname" /> |
| | | <result property="isdel" column="isdel" /> |
| | | <result property="content" column="content" /> |
| | | <result property="tagid" column="tagid" /> |
| | | <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" /> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTasksms" id="IvrTasksmsResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="type" column="type"/> |
| | | <result property="smstemplateid" column="smstemplateid"/> |
| | | <result property="phonestatusid" column="phonestatusid"/> |
| | | <result property="smstemplatename" column="smstemplatename"/> |
| | | <result property="phonestatusname" column="phonestatusname"/> |
| | | <result property="isdel" column="isdel"/> |
| | | <result property="content" column="content"/> |
| | | <result property="tagid" column="tagid"/> |
| | | <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"/> |
| | | </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="isdel != null "> and isdel = #{isdel}</if> |
| | | <if test="content != null and content != ''"> and content = #{content}</if> |
| | | <if test="tagid != null "> and tagid = #{tagid}</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="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="isdel != null ">and isdel = #{isdel}</if> |
| | | <if test="content != null and content != ''">and content = #{content}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</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="selectIvrTasksmsById" parameterType="Long" resultMap="IvrTasksmsResult"> |
| | | <include refid="selectIvrTasksmsVo"/> |
| | | 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> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | </trim> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | </trim> |
| | | </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> |
| | |
| | | </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"> |
| | | delete from ivr_tasksms where id in |
| | | delete from ivr_tasksms where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |