| | |
| | | <resultMap type="com.smartor.domain.IvrLibaScriptTargetoption" id="IvrLibaScriptTargetoptionResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="scriptid" column="scriptid"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | |
| | | <sql id="selectIvrLibaScriptTargetoptionVo"> |
| | | select id, |
| | | targetid, |
| | | targetname, |
| | | scriptid, |
| | | targettype, |
| | | categoryName, |
| | |
| | | <include refid="selectIvrLibaScriptTargetoptionVo"/> |
| | | <where> |
| | | <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="targetid != null and targetid != ''">targetid,</if> |
| | | <if test="targetname != null and targetname != ''">targetname,</if> |
| | | <if test="scriptid != null">scriptid,</if> |
| | | <if test="targettype != null and targettype != ''">targettype,</if> |
| | | <if test="categoryName != null and categoryName != ''">categoryName,</if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="targetid != null and targetid != ''">#{targetid},</if> |
| | | <if test="targetname != null and targetname != ''">#{targetname},</if> |
| | | <if test="scriptid != null ">#{scriptid},</if> |
| | | <if test="targettype != null and targettype != ''">#{targettype},</if> |
| | | <if test="categoryName != null and categoryName != ''">#{categoryName},</if> |
| | |
| | | update ivr_liba_script_targetoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="targetid != null and targetid != ''">targetid = #{targetid},</if> |
| | | <if test="targetname != null and targetname != ''">targetname = #{targetname},</if> |
| | | <if test="scriptid != null">scriptid = #{scriptid},</if> |
| | | <if test="targettype != null and targettype != ''">targettype = #{targettype},</if> |
| | | <if test="categoryName != null and categoryName != ''">categoryName = #{categoryName},</if> |