| | |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | <result property="sortid" column="sortid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTargetoptionVo"> |
| | |
| | | nodynamiccruxs, |
| | | orderno, |
| | | dynamiccruxs, |
| | | optiondesc, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | | optiondesc, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, sortid |
| | | from ivr_liba_targetoption |
| | | </sql> |
| | | |
| | | <select id="selectIvrLibaTargetoptionList" parameterType="com.smartor.domain.IvrLibaTargetoption" |
| | | resultMap="IvrLibaTargetoptionResult"> |
| | | <include refid="selectIvrLibaTargetoptionVo"/> |
| | | <where> |
| | | del_flag != 1 |
| | | where 1=1 |
| | | and del_flag != 1 |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | | </where> |
| | | order by guid asc |
| | | <if test="sortid != null and sortid != ''">and sortid = #{sortid}</if> |
| | | order by guid asc, sortid asc |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTargetoptionByTargetoptionid" parameterType="Long" resultMap="IvrLibaTargetoptionResult"> |
| | |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="isEnd != null ">is_end,</if> |
| | | <if test="sortid != null and sortid != ''">sortid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="targetid != null">#{targetid},</if> |
| | |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | <if test="sortid != null and sortid != ''">#{sortid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | <if test="sortid != null and sortid != ''">sortid = #{sortid},</if> |
| | | </trim> |
| | | where targetoptionid = #{targetoptionid} |
| | | </update> |