| | |
| | | <result property="modifyUserID" column="modifyUserID"/> |
| | | <result property="modifyTime" column="modifyTime"/> |
| | | <result property="groupID" column="groupID"/> |
| | | <result property="labelInfo" column="labelInfo"/> |
| | | <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="deptNames"/> |
| | | <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="usestate" column="usestate"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateVo"> |
| | |
| | | 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 |
| | | otherdata, |
| | | suitway, |
| | | 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 |
| | | from ivr_liba_template |
| | | </sql> |
| | | |
| | |
| | | resultMap="IvrLibaTemplateResult"> |
| | | <include refid="selectIvrLibaTemplateVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | '%') |
| | | </if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</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="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="labelInfo != null and labelInfo != ''">and label_info = #{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="deptNames != null and deptNames != ''">and deptNames like concat('%', |
| | | <if test="deptNames != null and deptNames != ''">and dept_names like concat('%', |
| | | #{deptNames}, '%') |
| | | </if> |
| | | <if test="atuoTaskDayOffset != null ">and atuoTaskDayOffset = #{atuoTaskDayOffset}</if> |
| | |
| | | |
| | | <select id="selectIvrLibaTemplateByID" parameterType="Long" resultMap="IvrLibaTemplateResult"> |
| | | <include refid="selectIvrLibaTemplateVo"/> |
| | | where ID = #{ID} |
| | | where ID = #{ID} and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplate" parameterType="com.smartor.domain.IvrLibaTemplate" useGeneratedKeys="true" |
| | |
| | | <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="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">deptNames,</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="assortid != null">assortid,</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> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">#{templateName},</if> |
| | |
| | | <if test="assortid != null">#{assortid},</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> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <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">labelInfo = #{labelInfo},</if> |
| | | <if test="labelInfo != null">label_info = #{labelInfo},</if> |
| | | <if test="submoduleID != null">submoduleID = #{submoduleID},</if> |
| | | <if test="playType != null">playType = #{playType},</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="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="assortid != null">assortid = #{assortid},</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> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |