| | |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTemplateMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplate" id="IvrLibaTemplateResult"> |
| | | <result property="templateID" column="templateID"/> |
| | | <result property="ID" column="ID"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="templateName" column="templateName"/> |
| | | <result property="silencetime" column="silencetime"/> |
| | | <result property="slienceRepeatTimes" column="slienceRepeatTimes"/> |
| | |
| | | <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="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="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="assortid" column="assortid"/> |
| | | <result property="parameter" column="parameter"/> |
| | | <result property="version" column="version"/> |
| | | <result property="usestate" column="usestate"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="tag" column="tag"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateVo"> |
| | | select templateID, |
| | | select ID, |
| | | targetid, |
| | | targetname, |
| | | 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 |
| | | version, |
| | | usestate, |
| | | campus, |
| | | tag, |
| | | 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, 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="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="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="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="campus != null and campus != ''">and campus = #{campus}</if> |
| | | <if test="icd10codename != null and icd10codename != ''">and icd10codename like concat('%', |
| | | #{icd10codename}, '%') |
| | | </if> |
| | | <if test="deptNames != null and deptNames != ''">and deptNames like concat('%', |
| | | #{deptNames}, '%') |
| | | </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="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="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</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> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateByTemplateID" parameterType="String" resultMap="IvrLibaTemplateResult"> |
| | | <select id="selectIvrLibaTemplateByID" parameterType="Long" resultMap="IvrLibaTemplateResult"> |
| | | <include refid="selectIvrLibaTemplateVo"/> |
| | | where templateID = #{templateID} |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplate" parameterType="com.smartor.domain.IvrLibaTemplate"> |
| | | <insert id="insertIvrLibaTemplate" parameterType="com.smartor.domain.IvrLibaTemplate" useGeneratedKeys="true" |
| | | keyProperty="ID"> |
| | | insert into ivr_liba_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateID != null">templateID,</if> |
| | | <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="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="deptIds != null">deptIds,</if> |
| | | <if test="deptNames != null">deptNames,</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="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> |
| | | <if test="assortid != null">assortid,</if> |
| | | <if test="parameter != null">parameter,</if> |
| | | <if test="tag != null">tag,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <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="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="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="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> |
| | | <if test="assortid != null">#{assortid},</if> |
| | | <if test="parameter != null">#{parameter},</if> |
| | | <if test="tag != null">#{tag},</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="icd10code != null">icd10code = #{icd10code},</if> |
| | | <if test="icd10codename != null">icd10codename = #{icd10codename},</if> |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset = #{atuoTaskDayOffset},</if> |
| | | <if test="DeptIds != null">DeptIds = #{DeptIds},</if> |
| | | <if test="DeptNames != null">DeptNames = #{DeptNames},</if> |
| | | <if test="deptIds != null">deptIds = #{deptIds},</if> |
| | | <if test="deptNames != null">deptNames = #{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="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> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="assortid != null">assortid = #{assortid},</if> |
| | | <if test="parameter != null">parameter = #{parameter},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | </trim> |
| | | where templateID = #{templateID} |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplateByTemplateID" parameterType="String"> |
| | | delete |
| | | from ivr_liba_template |
| | | where templateID = #{templateID} |
| | | </delete> |
| | | <update id="deleteIvrLibaTemplateByID" parameterType="Long"> |
| | | update ivr_liba_template |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1,</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplateByTemplateIDs" parameterType="String"> |
| | | delete from ivr_liba_template where templateID in |
| | | <foreach item="templateID" collection="array" open="(" separator="," close=")"> |
| | | #{templateID} |
| | | <delete id="deleteIvrLibaTemplateByIDs" parameterType="String"> |
| | | delete from ivr_liba_template where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |