| | |
| | | <result property="sort" column="sort"/> |
| | | <result property="score" column="score"/> |
| | | <result property="groupName" column="group_name"/> |
| | | <result property="assortid" column="assortid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | | select id, |
| | | scriptno, |
| | | sort, |
| | | assortid, |
| | | group_name, |
| | | branch_flag, |
| | | branch_nextscriptno, |
| | |
| | | <select id="selectIvrLibaTemplateScriptList" parameterType="com.smartor.domain.IvrLibaTemplateScript" |
| | | resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="scriptno != null ">and scriptno = #{scriptno}</if> |
| | | <if test="assortid != null ">and assortid = #{assortid}</if> |
| | | <if test="groupName != null ">and group_name = #{groupName}</if> |
| | | <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | |
| | | <if test="scriptType != null">and script_type = #{scriptType}</if> |
| | | <if test="sort != null">and sort = #{sort}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateScriptByID" parameterType="Long" resultMap="IvrLibaTemplateScriptResult"> |
| | |
| | | <if test="score != null ">score,</if> |
| | | <if test="ivrtext != null ">ivrtext,</if> |
| | | <if test="groupName != null ">group_name,</if> |
| | | <if test="assortid != null ">assortid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">#{scriptno},</if> |
| | |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="ivrtext != null ">#{ivrtext},</if> |
| | | <if test="groupName != null ">#{groupName},</if> |
| | | <if test="assortid != null ">#{assortid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="branchFlag != null and branchFlag != ''">branch_flag = #{branchFlag},</if> |
| | | <if test="score != null ">score = #{score},</if> |
| | | <if test="groupName != null ">group_name = #{groupName},</if> |
| | | <if test="assortid != null ">assortid = #{assortid},</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">branch_nextscriptno = |
| | | #{branchNextscriptno}, |
| | | </if> |