文件名从 smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml 修改 |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTemplatetargetMapper"> |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTemplateTargetMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplatetarget" id="IvrLibaTemplatetargetResult"> |
| | | <result property="templateTargetID" column="templateTargetID"/> |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplateTarget" id="IvrLibaTemplateTargetResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="templateQuestionID" column="templateQuestionID"/> |
| | | <result property="templateQuestionNum" column="templateQuestionNum"/> |
| | | <result property="nextQuestionNum" column="nextQuestionNum"/> |
| | |
| | | <result property="regexUsedType" column="regexUsedType"/> |
| | | <result property="language" column="language"/> |
| | | <result property="isEnable" column="isEnable"/> |
| | | <result property="isDel" column="isDel"/> |
| | | <result property="playType" column="playType"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplatetargetVo"> |
| | | select templateTargetID, |
| | | <sql id="selectIvrLibaTemplateTargetVo"> |
| | | select ID, |
| | | templateQuestionID, |
| | | templateQuestionNum, |
| | | nextQuestionNum, |
| | |
| | | questionTargetID, |
| | | basicRegex, |
| | | selfRegex, |
| | | regexUsedType, language, isEnable, isDel, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid |
| | | from ivr_liba_templatetarget |
| | | regexUsedType, language, isEnable, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | | from ivr_liba_template_target |
| | | </sql> |
| | | |
| | | <select id="selectIvrLibaTemplatetargetList" parameterType="com.smartor.domain.IvrLibaTemplatetarget" |
| | | resultMap="IvrLibaTemplatetargetResult"> |
| | | <include refid="selectIvrLibaTemplatetargetVo"/> |
| | | <select id="selectIvrLibaTemplateTargetList" parameterType="com.smartor.domain.IvrLibaTemplateTarget" |
| | | resultMap="IvrLibaTemplateTargetResult"> |
| | | <include refid="selectIvrLibaTemplateTargetVo"/> |
| | | <where> |
| | | <if test="templateQuestionID != null and templateQuestionID != ''">and templateQuestionID = |
| | | #{templateQuestionID} |
| | | </if> |
| | | <if test="templateQuestionID != null ">and templateQuestionID = #{templateQuestionID}</if> |
| | | <if test="templateQuestionNum != null ">and templateQuestionNum = #{templateQuestionNum}</if> |
| | | <if test="nextQuestionNum != null ">and nextQuestionNum = #{nextQuestionNum}</if> |
| | | <if test="templateID != null and templateID != ''">and templateID = #{templateID}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="switchID != null ">and switchID = #{switchID}</if> |
| | | <if test="switchDescription != null and switchDescription != ''">and switchDescription = |
| | | #{switchDescription} |
| | |
| | | <if test="regexUsedType != null and regexUsedType != ''">and regexUsedType = #{regexUsedType}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="isEnable != null ">and isEnable = #{isEnable}</if> |
| | | <if test="isDel != null ">and isDel = #{isDel}</if> |
| | | <if test="playType != null ">and playType = #{playType}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplatetargetByTemplateTargetID" parameterType="String" |
| | | resultMap="IvrLibaTemplatetargetResult"> |
| | | <include refid="selectIvrLibaTemplatetargetVo"/> |
| | | where templateTargetID = #{templateTargetID} |
| | | <select id="selectIvrLibaTemplateTargetByID" parameterType="Long" resultMap="IvrLibaTemplateTargetResult"> |
| | | <include refid="selectIvrLibaTemplateTargetVo"/> |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplatetarget" parameterType="com.smartor.domain.IvrLibaTemplatetarget"> |
| | | insert into ivr_liba_templatetarget |
| | | <insert id="insertIvrLibaTemplateTarget" parameterType="com.smartor.domain.IvrLibaTemplateTarget"> |
| | | insert into ivr_liba_template_target |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateTargetID != null">templateTargetID,</if> |
| | | <if test="templateQuestionID != null and templateQuestionID != ''">templateQuestionID,</if> |
| | | <if test="templateQuestionID != null">templateQuestionID,</if> |
| | | <if test="templateQuestionNum != null">templateQuestionNum,</if> |
| | | <if test="nextQuestionNum != null">nextQuestionNum,</if> |
| | | <if test="templateID != null and templateID != ''">templateID,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="switchID != null">switchID,</if> |
| | | <if test="switchDescription != null">switchDescription,</if> |
| | | <if test="switchText != null">switchText,</if> |
| | |
| | | <if test="basicRegex != null">basicRegex,</if> |
| | | <if test="selfRegex != null">selfRegex,</if> |
| | | <if test="regexUsedType != null">regexUsedType,</if> |
| | | <if test="language != null and language != ''">language,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="isEnable != null">isEnable,</if> |
| | | <if test="isDel != null">isDel,</if> |
| | | <if test="playType != null">playType,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateTargetID != null">#{templateTargetID},</if> |
| | | <if test="templateQuestionID != null and templateQuestionID != ''">#{templateQuestionID},</if> |
| | | <if test="templateQuestionID != null">#{templateQuestionID},</if> |
| | | <if test="templateQuestionNum != null">#{templateQuestionNum},</if> |
| | | <if test="nextQuestionNum != null">#{nextQuestionNum},</if> |
| | | <if test="templateID != null and templateID != ''">#{templateID},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="switchID != null">#{switchID},</if> |
| | | <if test="switchDescription != null">#{switchDescription},</if> |
| | | <if test="switchText != null">#{switchText},</if> |
| | |
| | | <if test="basicRegex != null">#{basicRegex},</if> |
| | | <if test="selfRegex != null">#{selfRegex},</if> |
| | | <if test="regexUsedType != null">#{regexUsedType},</if> |
| | | <if test="language != null and language != ''">#{language},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="isEnable != null">#{isEnable},</if> |
| | | <if test="isDel != null">#{isDel},</if> |
| | | <if test="playType != null">#{playType},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrLibaTemplatetarget" parameterType="com.smartor.domain.IvrLibaTemplatetarget"> |
| | | update ivr_liba_templatetarget |
| | | <update id="updateIvrLibaTemplateTarget" parameterType="com.smartor.domain.IvrLibaTemplateTarget"> |
| | | update ivr_liba_template_target |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="templateQuestionID != null and templateQuestionID != ''">templateQuestionID = |
| | | #{templateQuestionID}, |
| | | </if> |
| | | <if test="templateQuestionID != null">templateQuestionID = #{templateQuestionID},</if> |
| | | <if test="templateQuestionNum != null">templateQuestionNum = #{templateQuestionNum},</if> |
| | | <if test="nextQuestionNum != null">nextQuestionNum = #{nextQuestionNum},</if> |
| | | <if test="templateID != null and templateID != ''">templateID = #{templateID},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="switchID != null">switchID = #{switchID},</if> |
| | | <if test="switchDescription != null">switchDescription = #{switchDescription},</if> |
| | | <if test="switchText != null">switchText = #{switchText},</if> |
| | |
| | | <if test="basicRegex != null">basicRegex = #{basicRegex},</if> |
| | | <if test="selfRegex != null">selfRegex = #{selfRegex},</if> |
| | | <if test="regexUsedType != null">regexUsedType = #{regexUsedType},</if> |
| | | <if test="language != null and language != ''">language = #{language},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="isEnable != null">isEnable = #{isEnable},</if> |
| | | <if test="isDel != null">isDel = #{isDel},</if> |
| | | <if test="playType != null">playType = #{playType},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where templateTargetID = #{templateTargetID} |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplatetargetByTemplateTargetID" parameterType="String"> |
| | | delete |
| | | from ivr_liba_templatetarget |
| | | where templateTargetID = #{templateTargetID} |
| | | </delete> |
| | | <update id="deleteIvrLibaTemplateTargetByID" parameterType="Long"> |
| | | update ivr_liba_template_target |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1,</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplatetargetByTemplateTargetIDs" parameterType="String"> |
| | | delete from ivr_liba_templatetarget where templateTargetID in |
| | | <foreach item="templateTargetID" collection="array" open="(" separator="," close=")"> |
| | | #{templateTargetID} |
| | | <delete id="deleteIvrLibaTemplateTargetByIDs" parameterType="String"> |
| | | delete from ivr_liba_template_target where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |