| | |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTemplateMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplate" id="IvrLibaTemplateResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="id" column="id"/> |
| | | <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="label_info"/> |
| | | <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="dept_names"/> |
| | | <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="campus" column="campus"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="mateNum" column="mate_num"/> |
| | | <result property="revisitBefore" column="revisit_before"/> |
| | | <result property="revisitAfter" column="revisit_after"/> |
| | | <result property="noVoiceNum" column="no_voice_num"/> |
| | | <result property="silencetime" column="silencetime"/> |
| | | <result property="sendDay" column="send_day"/> |
| | | <result property="longTemp" column="long_temp"/> |
| | | <result property="deptCode" column="dept_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateVo"> |
| | | select ID, |
| | | targetid, |
| | | select id, |
| | | revisit_before, |
| | | revisit_after, |
| | | targetname, |
| | | send_day, |
| | | dept_code, |
| | | long_temp, |
| | | templateName, |
| | | silencetime, |
| | | slienceRepeatTimes, |
| | | nomatchRepeatTimes, |
| | | firstQuestionNum, |
| | | version, |
| | | silencetime, |
| | | usestate, |
| | | campus, |
| | | tag, |
| | | otherdata, |
| | | suitway, |
| | | mate_num, |
| | | submodule, language, note, isEnable, addUserID, addTime, modifyUserID, modifyTime, groupID, label_info, submoduleID, playType, icd10code, icd10codename, atuoTaskDayOffset, deptIds, dept_names, F_KSDM, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, parameter |
| | | no_voice_num, |
| | | submodule, language, note, |
| | | groupID, label_info, submoduleID, playType, icd10code, icd10codename, deptIds, dept_names, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, parameter |
| | | from ivr_liba_template |
| | | </sql> |
| | | |
| | |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | '%') |
| | | </if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="sendDay != null ">and send_day = #{sendDay}</if> |
| | | <if test="longTemp != null ">and long_temp = #{longTemp}</if> |
| | | <if test="revisitAfter != null ">and revisit_after = #{revisitAfter}</if> |
| | | <if test="revisitBefore != null ">and revisit_before = #{revisitBefore}</if> |
| | | <if test="mateNum != null ">and mate_num = #{mateNum}</if> |
| | | <if test="mateNum != null and mateNum > 0">and mate_num = #{mateNum}</if> |
| | | <if test="suitway != null ">and suitway = #{suitway}</if> |
| | | <if test="targetname != null and targetname !='' ">and targetname = #{targetname}</if> |
| | | <if test="version != null and version !='' ">and version = #{version}</if> |
| | | <if test="usestate != null and usestate !='' ">and usestate = #{usestate}</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="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 label_info = #{labelInfo}</if> |
| | | <if test="submoduleID != null and submoduleID != ''">and submoduleID = #{submoduleID}</if> |
| | |
| | | <if test="deptNames != null and deptNames != ''">and dept_names like concat('%', |
| | | #{deptNames}, '%') |
| | | </if> |
| | | <if test="atuoTaskDayOffset != null ">and atuoTaskDayOffset = #{atuoTaskDayOffset}</if> |
| | | <if test="deptIds != null and deptIds != ''">and deptIds = #{deptIds}</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> |
| | | <if test="parameter != null and parameter != ''">and parameter = #{parameter}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0">and no_voice_num = #{noVoiceNum}</if> |
| | | <if test="silencetime != null">and silencetime = #{silencetime}</if> |
| | | <if test="deptCode != null">and dept_code = #{deptCode}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplate" parameterType="com.smartor.domain.IvrLibaTemplate" useGeneratedKeys="true" |
| | | keyProperty="ID"> |
| | | keyProperty="id"> |
| | | insert into ivr_liba_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">templateName,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null and targetname != ''">targetname,</if> |
| | | <if test="version != null and version != ''">version,</if> |
| | | <if test="campus != null and campus != ''">campus,</if> |
| | | <if test="usestate != null and usestate != ''">usestate,</if> |
| | | <if test="silencetime != null">silencetime,</if> |
| | | <if test="slienceRepeatTimes != null">slienceRepeatTimes,</if> |
| | | <if test="nomatchRepeatTimes != null">nomatchRepeatTimes,</if> |
| | | <if test="firstQuestionNum != null">firstQuestionNum,</if> |
| | | <if test="submodule != null">submodule,</if> |
| | | <if test="language != null and language != ''">language,</if> |
| | | <if test="note != null">note,</if> |
| | | <if test="isEnable != null">isEnable,</if> |
| | | <if test="addUserID != null">addUserID,</if> |
| | | <if test="addTime != null">addTime,</if> |
| | | <if test="modifyUserID != null">modifyUserID,</if> |
| | | <if test="modifyTime != null">modifyTime,</if> |
| | | <if test="groupID != null">groupID,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="submoduleID != null">submoduleID,</if> |
| | | <if test="playType != null">playType,</if> |
| | | <if test="icd10code != null">icd10code,</if> |
| | | <if test="icd10codename != null">icd10codename,</if> |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset,</if> |
| | | <if test="deptIds != null">deptIds,</if> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="fKsdm != null">F_KSDM,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | |
| | | <if test="parameter != null">parameter,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="mateNum != null ">mate_num</if> |
| | | <if test="revisitAfter != null ">revisit_after</if> |
| | | <if test="revisitBefore != null ">revisit_before</if> |
| | | <if test="mateNum != null ">mate_num,</if> |
| | | <if test="revisitAfter != null ">revisit_after,</if> |
| | | <if test="revisitBefore != null ">revisit_before,</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0 ">no_voice_num,</if> |
| | | <if test="silencetime != null ">silencetime,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | <if test="longTemp != null ">long_temp,</if> |
| | | <if test="deptCode != null">dept_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">#{templateName},</if> |
| | | <if test="targetid != null ">#{targetid},</if> |
| | | <if test="targetname != null and targetname != ''">#{targetname},</if> |
| | | <if test="version != null and version != ''">#{version},</if> |
| | | <if test="campus != null and campus != ''">#{campus},</if> |
| | | <if test="usestate != null and usestate != ''">#{usestate},</if> |
| | | <if test="silencetime != null">#{silencetime},</if> |
| | | <if test="slienceRepeatTimes != null">#{slienceRepeatTimes},</if> |
| | | <if test="nomatchRepeatTimes != null">#{nomatchRepeatTimes},</if> |
| | | <if test="firstQuestionNum != null">#{firstQuestionNum},</if> |
| | | <if test="submodule != null">#{submodule},</if> |
| | | <if test="language != null and language != ''">#{language},</if> |
| | | <if test="note != null">#{note},</if> |
| | | <if test="isEnable != null">#{isEnable},</if> |
| | | <if test="addUserID != null">#{addUserID},</if> |
| | | <if test="addTime != null">#{addTime},</if> |
| | | <if test="modifyUserID != null">#{modifyUserID},</if> |
| | | <if test="modifyTime != null">#{modifyTime},</if> |
| | | <if test="groupID != null">#{groupID},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="submoduleID != null">#{submoduleID},</if> |
| | | <if test="playType != null">#{playType},</if> |
| | | <if test="icd10code != null">#{icd10code},</if> |
| | | <if test="icd10codename != null">#{icd10codename},</if> |
| | | <if test="atuoTaskDayOffset != null">#{atuoTaskDayOffset},</if> |
| | | <if test="deptIds != null">#{deptIds},</if> |
| | | <if test="deptNames != null">#{deptNames},</if> |
| | | <if test="fKsdm != null">#{fKsdm},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | |
| | | <if test="parameter != null">#{parameter},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="mateNum != null ">#{mateNum}</if> |
| | | <if test="revisitAfter != null ">#{revisitAfter}</if> |
| | | <if test="revisitBefore != null ">#{revisitBefore}</if> |
| | | <if test="mateNum != null ">#{mateNum},</if> |
| | | <if test="revisitAfter != null ">#{revisitAfter},</if> |
| | | <if test="revisitBefore != null ">#{revisitBefore},</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0">#{noVoiceNum},</if> |
| | | <if test="silencetime != null ">#{silencetime},</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | <if test="longTemp != null ">#{longTemp},</if> |
| | | <if test="deptCode != null">#{deptCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | update ivr_liba_template |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">templateName = #{templateName},</if> |
| | | <if test="targetid != null ">targetid = #{targetid},</if> |
| | | <if test="targetname != null and targetname != ''">targetname = #{targetname},</if> |
| | | <if test="version != null and version != ''">version = #{version},</if> |
| | | <if test="campus != null and campus != ''">campus = #{campus},</if> |
| | | <if test="usestate != null and usestate != ''">usestate = #{usestate},</if> |
| | | <if test="silencetime != null">silencetime = #{silencetime},</if> |
| | | <if test="slienceRepeatTimes != null">slienceRepeatTimes = #{slienceRepeatTimes},</if> |
| | | <if test="nomatchRepeatTimes != null">nomatchRepeatTimes = #{nomatchRepeatTimes},</if> |
| | | <if test="firstQuestionNum != null">firstQuestionNum = #{firstQuestionNum},</if> |
| | | <if test="submodule != null">submodule = #{submodule},</if> |
| | | <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="addUserID != null">addUserID = #{addUserID},</if> |
| | | <if test="addTime != null">addTime = #{addTime},</if> |
| | | <if test="modifyUserID != null">modifyUserID = #{modifyUserID},</if> |
| | | <if test="modifyTime != null">modifyTime = #{modifyTime},</if> |
| | | <if test="groupID != null">groupID = #{groupID},</if> |
| | | <if test="labelInfo != null">label_info = #{labelInfo},</if> |
| | | <if test="submoduleID != null">submoduleID = #{submoduleID},</if> |
| | |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset = #{atuoTaskDayOffset},</if> |
| | | <if test="deptIds != null">deptIds = #{deptIds},</if> |
| | | <if test="deptNames != null">dept_names = #{deptNames},</if> |
| | | <if test="fKsdm != null">F_KSDM = #{fKsdm},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | |
| | | <if test="parameter != null">parameter = #{parameter},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="mateNum != null ">mate_num = #{mateNum}</if> |
| | | <if test="revisitAfter != null ">revisit_after = #{revisitAfter}</if> |
| | | <if test="revisitBefore != null ">revisit_before = #{revisitBefore}</if> |
| | | <if test="mateNum != null ">mate_num = #{mateNum},</if> |
| | | <if test="revisitAfter != null ">revisit_after = #{revisitAfter},</if> |
| | | <if test="revisitBefore != null ">revisit_before = #{revisitBefore},</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0 ">no_voice_num = #{noVoiceNum},</if> |
| | | <if test="silencetime != null">silencetime = #{silencetime},</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | <if test="longTemp != null ">long_temp = #{longTemp},</if> |
| | | <if test="deptCode != null">dept_code = #{deptCode},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteIvrLibaTemplateByID" parameterType="Long"> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | </trim> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplateByIDs" parameterType="String"> |
| | | delete from ivr_liba_template where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | delete from ivr_liba_template where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |