From ac79f032745c975eb77d6fb148ed390f2373559e Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 28 十二月 2023 17:58:52 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/IvrLibaTemplateTargetMapper.xml | 100 +++++++++++++++++++++++++------------------------- 1 files changed, 50 insertions(+), 50 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateTargetMapper.xml similarity index 74% rename from smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml rename to smartor/src/main/resources/mapper/smartor/IvrLibaTemplateTargetMapper.xml index 20b8ad2..38e4fbe 100644 --- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateTargetMapper.xml @@ -2,10 +2,10 @@ <!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"/> @@ -25,7 +25,6 @@ <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"/> @@ -35,10 +34,12 @@ <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, @@ -55,20 +56,18 @@ 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} @@ -89,28 +88,27 @@ <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> @@ -124,9 +122,8 @@ <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> @@ -136,13 +133,14 @@ <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> @@ -156,9 +154,8 @@ <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> @@ -168,18 +165,18 @@ <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> @@ -193,9 +190,8 @@ <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> @@ -205,20 +201,24 @@ <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> \ No newline at end of file -- Gitblit v1.9.3