| | |
| | | <select id="selectIvrTaskTemplateList" parameterType="com.smartor.domain.IvrTaskTemplate" |
| | | resultMap="IvrTaskTemplateResult"> |
| | | <include refid="selectIvrTaskTemplateVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag = 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="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | '%') |
| | | AND '%') |
| | | </if> |
| | | <if test="silencetime != null ">and silencetime = #{silencetime}</if> |
| | | <if test="recallcount != null ">and recallcount = #{recallcount}</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} and del_flag=0 |
| | | where id = #{id} |
| | | and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskTemplate" parameterType="com.smartor.domain.IvrTaskTemplate" useGeneratedKeys="true" |