From 52a0bf7637b725f0b6bf18a03962b0636f7074fb Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期五, 22 十二月 2023 18:14:40 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/IvrLibaTemplateMapper.xml | 171 +++++++++++++++++++++++++++++++-------------------------- 1 files changed, 93 insertions(+), 78 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateMapper.xml index 809d63e..aa51b20 100644 --- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateMapper.xml @@ -1,88 +1,101 @@ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper -PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" -"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.smartor.mapper.IvrLibaTemplateMapper"> - - <resultMap type="IvrLibaTemplate" id="IvrLibaTemplateResult"> - <result property="templateID" column="templateID" /> - <result property="templateName" column="templateName" /> - <result property="silencetime" column="silencetime" /> - <result property="slienceRepeatTimes" column="slienceRepeatTimes" /> - <result property="nomatchRepeatTimes" column="nomatchRepeatTimes" /> - <result property="firstQuestionNum" column="firstQuestionNum" /> - <result property="submodule" column="submodule" /> - <result property="language" column="language" /> - <result property="note" column="note" /> - <result property="isEnable" column="isEnable" /> - <result property="isDel" column="isDel" /> - <result property="addUserID" column="addUserID" /> - <result property="addTime" column="addTime" /> - <result property="modifyUserID" column="modifyUserID" /> - <result property="modifyTime" column="modifyTime" /> - <result property="groupID" column="groupID" /> - <result property="labelInfo" column="labelInfo" /> - <result property="submoduleID" column="submoduleID" /> - <result property="playType" column="playType" /> - <result property="icd10code" column="icd10code" /> - <result property="icd10codename" column="icd10codename" /> - <result property="atuoTaskDayOffset" column="atuoTaskDayOffset" /> - <result property="DeptIds" column="DeptIds" /> - <result property="DeptNames" column="DeptNames" /> - <result property="fKsdm" column="F_KSDM" /> - <result property="delFlag" column="del_flag" /> - <result property="updateBy" column="update_by" /> - <result property="updateTime" column="update_time" /> - <result property="createBy" column="create_by" /> - <result property="createTime" column="create_time" /> - <result property="isupload" column="isupload" /> - <result property="uploadTime" column="upload_time" /> - <result property="orgid" column="orgid" /> + + <resultMap type="com.smartor.domain.IvrLibaTemplate" id="IvrLibaTemplateResult"> + <result property="templateID" column="templateID"/> + <result property="templateName" column="templateName"/> + <result property="silencetime" column="silencetime"/> + <result property="slienceRepeatTimes" column="slienceRepeatTimes"/> + <result property="nomatchRepeatTimes" column="nomatchRepeatTimes"/> + <result property="firstQuestionNum" column="firstQuestionNum"/> + <result property="submodule" column="submodule"/> + <result property="language" column="language"/> + <result property="note" column="note"/> + <result property="isEnable" column="isEnable"/> + <result property="addUserID" column="addUserID"/> + <result property="addTime" column="addTime"/> + <result property="modifyUserID" column="modifyUserID"/> + <result property="modifyTime" column="modifyTime"/> + <result property="groupID" column="groupID"/> + <result property="labelInfo" column="labelInfo"/> + <result property="submoduleID" column="submoduleID"/> + <result property="playType" column="playType"/> + <result property="icd10code" column="icd10code"/> + <result property="icd10codename" column="icd10codename"/> + <result property="atuoTaskDayOffset" column="atuoTaskDayOffset"/> + <result property="deptIds" column="DeptIds"/> + <result property="deptNames" column="DeptNames"/> + <result property="fKsdm" column="F_KSDM"/> + <result property="delFlag" column="del_flag"/> + <result property="updateBy" column="update_by"/> + <result property="updateTime" column="update_time"/> + <result property="createBy" column="create_by"/> + <result property="createTime" column="create_time"/> + <result property="isupload" column="isupload"/> + <result property="uploadTime" column="upload_time"/> + <result property="orgid" column="orgid"/> + <result property="assortid" column="assortid"/> </resultMap> <sql id="selectIvrLibaTemplateVo"> - select templateID, templateName, silencetime, slienceRepeatTimes, nomatchRepeatTimes, firstQuestionNum, submodule, language, note, isEnable, isDel, addUserID, addTime, modifyUserID, modifyTime, groupID, labelInfo, submoduleID, playType, icd10code, icd10codename, atuoTaskDayOffset, DeptIds, DeptNames, F_KSDM, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_liba_template + select templateID, + templateName, + silencetime, + slienceRepeatTimes, + nomatchRepeatTimes, + firstQuestionNum, + submodule, language, note, isEnable, addUserID, addTime, modifyUserID, modifyTime, groupID, labelInfo, submoduleID, playType, icd10code, icd10codename, atuoTaskDayOffset, DeptIds, DeptNames, F_KSDM, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid + from ivr_liba_template </sql> - <select id="selectIvrLibaTemplateList" parameterType="IvrLibaTemplate" resultMap="IvrLibaTemplateResult"> + <select id="selectIvrLibaTemplateList" parameterType="com.smartor.domain.IvrLibaTemplate" + resultMap="IvrLibaTemplateResult"> <include refid="selectIvrLibaTemplateVo"/> - <where> - <if test="templateName != null and templateName != ''"> and templateName like concat('%', #{templateName}, '%')</if> - <if test="silencetime != null "> and silencetime = #{silencetime}</if> - <if test="slienceRepeatTimes != null "> and slienceRepeatTimes = #{slienceRepeatTimes}</if> - <if test="nomatchRepeatTimes != null "> and nomatchRepeatTimes = #{nomatchRepeatTimes}</if> - <if test="firstQuestionNum != null "> and firstQuestionNum = #{firstQuestionNum}</if> - <if test="submodule != null and submodule != ''"> and submodule = #{submodule}</if> - <if test="language != null and language != ''"> and language = #{language}</if> - <if test="note != null and note != ''"> and note = #{note}</if> - <if test="isEnable != null "> and isEnable = #{isEnable}</if> - <if test="isDel != null "> and isDel = #{isDel}</if> - <if test="addUserID != null and addUserID != ''"> and addUserID = #{addUserID}</if> - <if test="addTime != null "> and addTime = #{addTime}</if> - <if test="modifyUserID != null and modifyUserID != ''"> and modifyUserID = #{modifyUserID}</if> - <if test="modifyTime != null "> and modifyTime = #{modifyTime}</if> - <if test="groupID != null and groupID != ''"> and groupID = #{groupID}</if> - <if test="labelInfo != null and labelInfo != ''"> and labelInfo = #{labelInfo}</if> - <if test="submoduleID != null and submoduleID != ''"> and submoduleID = #{submoduleID}</if> - <if test="playType != null "> and playType = #{playType}</if> - <if test="icd10code != null and icd10code != ''"> and icd10code = #{icd10code}</if> - <if test="icd10codename != null and icd10codename != ''"> and icd10codename like concat('%', #{icd10codename}, '%')</if> - <if test="atuoTaskDayOffset != null "> and atuoTaskDayOffset = #{atuoTaskDayOffset}</if> - <if test="DeptIds != null and DeptIds != ''"> and DeptIds = #{DeptIds}</if> - <if test="DeptNames != null and DeptNames != ''"> and DeptNames = #{DeptNames}</if> - <if test="fKsdm != null and fKsdm != ''"> and F_KSDM = #{fKsdm}</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> + <where> + <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, + '%') + </if> + <if test="silencetime != null ">and silencetime = #{silencetime}</if> + <if test="slienceRepeatTimes != null ">and slienceRepeatTimes = #{slienceRepeatTimes}</if> + <if test="nomatchRepeatTimes != null ">and nomatchRepeatTimes = #{nomatchRepeatTimes}</if> + <if test="firstQuestionNum != null ">and firstQuestionNum = #{firstQuestionNum}</if> + <if test="submodule != null and submodule != ''">and submodule = #{submodule}</if> + <if test="language != null and language != ''">and language = #{language}</if> + <if test="note != null and note != ''">and note = #{note}</if> + <if test="isEnable != null ">and isEnable = #{isEnable}</if> + <if test="isDel != null ">and isDel = #{isDel}</if> + <if test="addUserID != null and addUserID != ''">and addUserID = #{addUserID}</if> + <if test="addTime != null ">and addTime = #{addTime}</if> + <if test="modifyUserID != null and modifyUserID != ''">and modifyUserID = #{modifyUserID}</if> + <if test="modifyTime != null ">and modifyTime = #{modifyTime}</if> + <if test="groupID != null and groupID != ''">and groupID = #{groupID}</if> + <if test="labelInfo != null and labelInfo != ''">and labelInfo = #{labelInfo}</if> + <if test="submoduleID != null and submoduleID != ''">and submoduleID = #{submoduleID}</if> + <if test="playType != null ">and playType = #{playType}</if> + <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if> + <if test="icd10codename != null and icd10codename != ''">and icd10codename like concat('%', + #{icd10codename}, '%') + </if> + <if test="atuoTaskDayOffset != null ">and atuoTaskDayOffset = #{atuoTaskDayOffset}</if> + <if test="DeptIds != null and DeptIds != ''">and DeptIds = #{DeptIds}</if> + <if test="DeptNames != null and DeptNames != ''">and DeptNames = #{DeptNames}</if> + <if test="fKsdm != null and fKsdm != ''">and F_KSDM = #{fKsdm}</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="assortid != null">and assortid = #{assortid}</if> </where> </select> - + <select id="selectIvrLibaTemplateByTemplateID" parameterType="String" resultMap="IvrLibaTemplateResult"> <include refid="selectIvrLibaTemplateVo"/> where templateID = #{templateID} </select> - - <insert id="insertIvrLibaTemplate" parameterType="IvrLibaTemplate"> + + <insert id="insertIvrLibaTemplate" parameterType="com.smartor.domain.IvrLibaTemplate"> insert into ivr_liba_template <trim prefix="(" suffix=")" suffixOverrides=","> <if test="templateID != null">templateID,</if> @@ -95,7 +108,6 @@ <if test="language != null and language != ''">language,</if> <if test="note != null">note,</if> <if test="isEnable != null">isEnable,</if> - <if test="isDel != null">isDel,</if> <if test="addUserID != null">addUserID,</if> <if test="addTime != null">addTime,</if> <if test="modifyUserID != null">modifyUserID,</if> @@ -118,7 +130,8 @@ <if test="isupload != null">isupload,</if> <if test="uploadTime != null">upload_time,</if> <if test="orgid != null">orgid,</if> - </trim> + <if test="assortid != null">assortid,</if> + </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="templateID != null">#{templateID},</if> <if test="templateName != null and templateName != ''">#{templateName},</if> @@ -130,7 +143,6 @@ <if test="language != null and language != ''">#{language},</if> <if test="note != null">#{note},</if> <if test="isEnable != null">#{isEnable},</if> - <if test="isDel != null">#{isDel},</if> <if test="addUserID != null">#{addUserID},</if> <if test="addTime != null">#{addTime},</if> <if test="modifyUserID != null">#{modifyUserID},</if> @@ -153,10 +165,11 @@ <if test="isupload != null">#{isupload},</if> <if test="uploadTime != null">#{uploadTime},</if> <if test="orgid != null">#{orgid},</if> - </trim> + <if test="assortid != null">#{assortid},</if> + </trim> </insert> - <update id="updateIvrLibaTemplate" parameterType="IvrLibaTemplate"> + <update id="updateIvrLibaTemplate" parameterType="com.smartor.domain.IvrLibaTemplate"> update ivr_liba_template <trim prefix="SET" suffixOverrides=","> <if test="templateName != null and templateName != ''">templateName = #{templateName},</if> @@ -168,7 +181,6 @@ <if test="language != null and language != ''">language = #{language},</if> <if test="note != null">note = #{note},</if> <if test="isEnable != null">isEnable = #{isEnable},</if> - <if test="isDel != null">isDel = #{isDel},</if> <if test="addUserID != null">addUserID = #{addUserID},</if> <if test="addTime != null">addTime = #{addTime},</if> <if test="modifyUserID != null">modifyUserID = #{modifyUserID},</if> @@ -191,16 +203,19 @@ <if test="isupload != null">isupload = #{isupload},</if> <if test="uploadTime != null">upload_time = #{uploadTime},</if> <if test="orgid != null">orgid = #{orgid},</if> + <if test="assortid != null">orgid = #{assortid},</if> </trim> where templateID = #{templateID} </update> <delete id="deleteIvrLibaTemplateByTemplateID" parameterType="String"> - delete from ivr_liba_template where templateID = #{templateID} + delete + from ivr_liba_template + where templateID = #{templateID} </delete> <delete id="deleteIvrLibaTemplateByTemplateIDs" parameterType="String"> - delete from ivr_liba_template where templateID in + delete from ivr_liba_template where templateID in <foreach item="templateID" collection="array" open="(" separator="," close=")"> #{templateID} </foreach> -- Gitblit v1.9.3