From 500130efe30180fe635ba4482e097e848d37c7e3 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 28 五月 2024 09:42:39 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 46 insertions(+), 4 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml index ca6e3e4..ce11791 100644 --- a/smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/SvyLibTitleMapper.xml @@ -26,11 +26,20 @@ <result property="updateTime" column="update_time"/> <result property="isupload" column="isupload"/> <result property="uploadTime" column="upload_time"/> + <result property="deptNames" column="dept_names"/> + <result property="labelInfo" column="label_info"/> + <result property="campus" column="campus"/> + <result property="suitway" column="suitway"/> + <result property="otherdata" column="otherdata"/> + <result property="valueType" column="value_type"/> + <result property="reply" column="reply"/> </resultMap> <sql id="selectSvyLibTitleVo"> select svyid, categoryid, + value_type, + reply, svycode, svyname, description, @@ -49,18 +58,28 @@ update_by, update_time, isupload, - upload_time + upload_time, + dept_names, + label_info, + campus, + suitway, + otherdata from svy_lib_title </sql> <select id="selectSvyLibTitleList" parameterType="com.smartor.domain.SvyLibTitleReq" resultMap="SvyLibTitleResult"> select a.svyid, a.categoryid, a.svycode, a.svyname, a.description, a.introduce,a.submitprompt, a.templateid, a.version,a.centerlibrarycode, a.centerlibraryid, a.islocal, a.isenable, a.orgid, a.del_flag, a.create_by, - a.create_time, a.update_by, a.update_time, a.isupload, a.upload_time,c.icdname from svy_lib_title + a.create_time, a.update_by, a.update_time, a.isupload, + a.upload_time,a.dept_names,a.value_type,a.label_info,a.reply, + a.campus,a.suitway,a.otherdata + ,c.icdname from svy_lib_title a,icd10_association b,icd10 c <where> + a.del_flag=0 and a.svyid=b.SVYID and b.ICD10CODE=c.icdcode <if test="categoryid != null ">and a.categoryid = #{categoryid}</if> + <if test="svyid != null ">and a.svyid = #{svyid}</if> <if test="svyname != null and svyname != ''">and a.svyname like concat('%', #{svyname}, '%')</if> <if test="description != null and description != ''">and a.icdname like concat('%', #{description}, '%') </if> @@ -69,7 +88,7 @@ <select id="selectSvyLibTitleBySvyid" parameterType="Long" resultMap="SvyLibTitleResult"> <include refid="selectSvyLibTitleVo"/> - where svyid = #{svyid} + where svyid = #{svyid} and del_flag=0 </select> <insert id="insertSvyLibTitle" parameterType="com.smartor.domain.SvyLibTitle" useGeneratedKeys="true" @@ -96,6 +115,15 @@ <if test="updateTime != null">update_time,</if> <if test="isupload != null">isupload,</if> <if test="uploadTime != null">upload_time,</if> + <if test="deptNames != null">dept_names,</if> + <if test="labelInfo != null">label_info,</if> + <if test="campus != null">campus,</if> + <if test="suitway != null">suitway,</if> + <if test="otherdata != null">otherdata,</if> + <if test="valueType != null">value_type,</if> + <if test="reply != null">reply,</if> + value_type, + reply, </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="categoryid != null">#{categoryid},</if> @@ -118,6 +146,13 @@ <if test="updateTime != null">#{updateTime},</if> <if test="isupload != null">#{isupload},</if> <if test="uploadTime != null">#{uploadTime},</if> + <if test="deptNames != null">#{deptNames},</if> + <if test="labelInfo != null">#{labelInfo},</if> + <if test="campus != null">#{campus},</if> + <if test="suitway != null">#{suitway},</if> + <if test="otherdata != null">#{otherdata},</if> + <if test="valueType != null">#{valueType},</if> + <if test="reply != null">#{reply},</if> </trim> </insert> @@ -144,6 +179,13 @@ <if test="updateTime != null">update_time = #{updateTime},</if> <if test="isupload != null">isupload = #{isupload},</if> <if test="uploadTime != null">upload_time = #{uploadTime},</if> + <if test="deptNames != null">dept_names=#{deptNames},</if> + <if test="labelInfo != null">label_info=#{labelInfo},</if> + <if test="campus != null">campus=#{campus},</if> + <if test="suitway != null">suitway=#{suitway},</if> + <if test="otherdata != null">otherdata=#{otherdata},</if> + <if test="valueType != null">value_type = #{valueType},</if> + <if test="reply != null">reply = #{reply},</if> </trim> where svyid = #{svyid} </update> @@ -160,4 +202,4 @@ #{svyid} </foreach> </delete> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3