| | |
| | | <result property="parameter" column="parameter"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="scriptType" column="script_type"/> |
| | | <result property="optionDesc" column="option_desc"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTargetVO" id="IvrLibaTargetVOResult"> |
| | |
| | | <result property="suitWay" column="suitWay"/> |
| | | <result property="parameter" column="parameter"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="optionDesc" column="option_desc"/> |
| | | <collection property="targetoptionList" javaType="java.util.List" resultMap="IvrLibaTargetoptionResult"/> |
| | | </resultMap> |
| | | |
| | |
| | | <sql id="selectIvrLibaTargetVo"> |
| | | select id, |
| | | groupid, |
| | | option_desc, |
| | | script_type, |
| | | targettype, |
| | | targetname, |
| | |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type like concat('%', #{scriptType}, '%') |
| | | </if> |
| | | <if test="targetdesc != null and targetdesc != ''">and targetdesc = #{targetdesc}</if> |
| | | <if test="targetdesc != null and targetdesc != ''">and targetdesc like concat('%', #{targetdesc}, '%')</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="version != null ">and version = #{version}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | |
| | | <if test="suitDisease != null and suitDisease != ''">and suitDisease = #{suitDisease}</if> |
| | | <if test="suitWay != null and suitWay != ''">and suitWay like concat('%', #{suitWay}, '%')</if> |
| | | <if test="parameter != null and parameter != ''">and parameter = #{parameter}</if> |
| | | <if test="optionDesc != null and optionDesc != ''">and option_desc = #{optionDesc}</if> |
| | | |
| | | </where> |
| | | order by update_time desc |
| | | </select> |
| | | |
| | | <select id="targetInfo" parameterType="com.smartor.domain.IvrLibaTarget" resultMap="IvrLibaTargetVOResult"> |
| | |
| | | a.warndown, |
| | | a.orgid, |
| | | a.pid, |
| | | a.option_desc, |
| | | a.guid, |
| | | a.reply, |
| | | a.assortid, |
| | |
| | | <if test="suitDisease != null and suitDisease != ''">a.suitDisease = #{suitDisease}</if> |
| | | <if test="suitWay != null and suitWay != ''">a.suitWay like concat('%', #{suitWay}, '%')</if> |
| | | <if test="parameter != null and parameter != ''">a.parameter = #{parameter}</if> |
| | | <if test="optionDesc != null and optionDesc != ''">a.option_desc = #{optionDesc}</if> |
| | | |
| | | </where> |
| | | ORDER BY a.targetID |
| | | </select> |
| | |
| | | <if test="parameter != null and parameter != ''">parameter,</if> |
| | | <if test="reply != null and reply != ''">reply,</if> |
| | | <if test="scriptType != null and scriptType != ''">script_type,</if> |
| | | <if test="optionDesc != null and optionDesc != ''">option_desc,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="groupid != null">#{groupid},</if> |
| | |
| | | <if test="parameter != null and parameter != ''">#{parameter},</if> |
| | | <if test="reply != null and reply != ''">#{reply},</if> |
| | | <if test="scriptType != null and scriptType != ''">#{scriptType},</if> |
| | | <if test="optionDesc != null and optionDesc != ''">#{optionDesc},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="parameter != null and parameter != ''">parameter = #{parameter},</if> |
| | | <if test="reply != null and reply != ''">reply = #{reply},</if> |
| | | <if test="scriptType != null and scriptType != ''">script_type = #{scriptType},</if> |
| | | <if test="optionDesc != null and optionDesc != ''">option_desc = #{optionDesc},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |