| | |
| | | <result property="instruction" column="instruction"/> |
| | | <result property="sendDay" column="send_day"/> |
| | | <result property="deptCode" column="dept_code"/> |
| | | <result property="longTemp" column="long_temp"/> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateVo"> |
| | | select id, |
| | | taskid, |
| | | long_temp, |
| | | send_day, |
| | | recallcount, |
| | | instruction, |
| | |
| | | resultMap="IvrTaskTemplateResult"> |
| | | <include refid="selectIvrTaskTemplateVo"/> |
| | | <where> |
| | | del_flat=0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="sendDay != null ">and send_day = #{sendDay}</if> |
| | | <if test="id != null ">and id = #{id}</if> |
| | |
| | | <if test="noVoiceNum != null ">and no_voice_num = #{noVoiceNum}</if> |
| | | <if test="recallcount != null">and recallcount = #{prologrecallcountue}</if> |
| | | <if test="deptCode != null">and dept_code = #{deptCode}</if> |
| | | <if test="longTemp != null">and long_temp = #{longTemp}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskTemplateByID" parameterType="Long" resultMap="IvrTaskTemplateResult"> |
| | | <include refid="selectIvrTaskTemplateVo"/> |
| | | where id = #{id} |
| | | where id = #{id} and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskTemplate" parameterType="com.smartor.domain.IvrTaskTemplate" useGeneratedKeys="true" |
| | |
| | | <if test="instruction != null ">instruction,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | <if test="deptCode != null">dept_code,</if> |
| | | <if test="longTemp != null">long_temp,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="instruction != null ">#{instruction},</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | <if test="deptCode != null">#{deptCode},</if> |
| | | <if test="longTemp != null">#{longTemp},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="instruction != null ">instruction = #{instruction},</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | <if test="deptCode != null">dept_code = #{deptCode},</if> |
| | | <if test="longTemp != null">long_temp = #{longTemp},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskTemplateByID" parameterType="Long"> |
| | | delete |
| | | from ivr_task_template |
| | | <update id="deleteIvrTaskTemplateByID" parameterType="Long"> |
| | | update ivr_task_template |
| | | set del_flag=1 |
| | | where id = #{id} |
| | | </delete> |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskTemplateByIDs" parameterType="String"> |
| | | delete from ivr_task_template where id in |
| | | <update id="deleteIvrTaskTemplateByIDs" parameterType="String"> |
| | | update ivr_task_template |
| | | set del_flag=1 where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </update> |
| | | </mapper> |