| | |
| | | <result property="submoduleVoice" column="submoduleVoice"/> |
| | | <result property="noClearlyText" column="noClearlyText"/> |
| | | <result property="noClearlyVoice" column="noClearlyVoice"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="scriptAssortname" column="script_assortname"/> |
| | | <result property="playWavOnly" column="playWavOnly"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | |
| | | <result property="sort" column="sort"/> |
| | | <result property="score" column="score"/> |
| | | <result property="groupName" column="group_name"/> |
| | | <result property="assortid" column="assortid"/> |
| | | <result property="scriptAssortid" column="script_assortid"/> |
| | | <result property="dutyDeptName" column="duty_dept_name"/> |
| | | <result property="dutyDeptCode" column="duty_dept_code"/> |
| | | <result property="reportDeptCode" column="report_dept_name"/> |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | | select id, |
| | | scriptno, |
| | | sort, |
| | | assortid, |
| | | script_assortname, |
| | | duty_dept_name, |
| | | duty_dept_code, |
| | | report_dept_name, |
| | | report_dept_code, |
| | | script_assortid, |
| | | group_name, |
| | | branch_flag, |
| | | branch_nextscriptno, |
| | |
| | | submoduleVoice, |
| | | noClearlyText, |
| | | noClearlyVoice, |
| | | categoryName, |
| | | targetid, |
| | | value_type, |
| | | targetvalue, |
| | |
| | | <select id="selectIvrLibaTemplateScriptList" parameterType="com.smartor.domain.IvrLibaTemplateScript" |
| | | resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | where del_flag = 0 |
| | | <if test="scriptno != null ">and scriptno = #{scriptno}</if> |
| | | <if test="assortid != null ">and assortid = #{assortid}</if> |
| | | <if test="scriptAssortid != null ">and script_assortid = #{scriptAssortid}</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="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | <if test="scriptAssortname != null and scriptAssortname != ''">and script_assortname like concat('%', |
| | | #{scriptAssortname}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">and duty_dept_name like concat('%', #{dutyDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">and duty_dept_code like concat('%', #{dutyDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">and report_dept_name like concat('%', |
| | | #{reportDeptName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">and report_dept_code like concat('%', |
| | | #{reportDeptCode}, |
| | | '%') |
| | | </if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%', |
| | |
| | | <if test="submoduleVoice != null">submoduleVoice,</if> |
| | | <if test="noClearlyText != null">noClearlyText,</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="scriptAssortname != null">script_assortname,</if> |
| | | <if test="playWavOnly != null">playWavOnly,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | |
| | | <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> |
| | | <if test="scriptAssortid != null ">script_assortid,</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name,</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code,</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name,</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">#{scriptno},</if> |
| | |
| | | <if test="submoduleVoice != null">#{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">#{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">#{noClearlyVoice},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="scriptAssortname != null">#{scriptAssortname},</if> |
| | | <if test="playWavOnly != null">#{playWavOnly},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</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> |
| | | <if test="scriptAssortid != null ">#{scriptAssortid},</if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">#{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">#{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">#{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="submoduleVoice != null">submoduleVoice = #{submoduleVoice},</if> |
| | | <if test="noClearlyText != null">noClearlyText = #{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice = #{noClearlyVoice},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="scriptAssortname != null">script_assortname = #{scriptAssortname},</if> |
| | | <if test="playWavOnly != null">playWavOnly = #{playWavOnly},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | |
| | | <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="scriptAssortid != null ">script_assortid = #{scriptAssortid},</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">branch_nextscriptno = |
| | | #{branchNextscriptno}, |
| | | </if> |
| | | <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name = #{dutyDeptName},</if> |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code = #{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | |
| | | </delete> |
| | | |
| | | <select id="queryLibTemplateIds" resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | where del_flag=0 |
| | | <if test="scriptAssortids != null and scriptAssortids.size > 0"> |
| | | and script_assortid in |
| | | <foreach item="scriptAssortid" collection="scriptAssortids" open="(" separator="," close=")"> |
| | | #{scriptAssortid} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | </mapper> |