From ae3200fadc28f925e516d85da7fcb78d402960f7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 30 七月 2024 18:16:10 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml
index 6fdf155..cc840d2 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml
@@ -27,7 +27,6 @@
         <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"/>
@@ -63,7 +62,6 @@
                isupload,
                upload_time,
                dept_names,
-               label_info,
                campus,
                suitway,
                script_score,
@@ -97,7 +95,6 @@
         a.upload_time,
         a.dept_names,
         a.value_type,
-        a.label_info,
         a.reply,
         a.campus,
         a.suitway,
@@ -108,7 +105,7 @@
         b.icd10name
         FROM
         svy_lib_template a
-        JOIN (select outid,GROUP_CONCAT(icd10code) as icd10code,GROUP_CONCAT(icd10name) as icd10name from
+        LEFT JOIN (select outid,GROUP_CONCAT(icd10code) as icd10code,GROUP_CONCAT(icd10name) as icd10name from
         icd10_association group by outid) b ON a.del_flag = 0
         AND a.svyid = b.outid
         <where>
@@ -119,6 +116,7 @@
             <if test="description != null  and description != ''">and a.icdname like concat('%', #{description}, '%')
             </if>
         </where>
+        order by a.create_time desc
     </select>
 
     <select id="selectSvyLibTemplateBySvyid" parameterType="Long" resultMap="SvyLibTemplateResult">
@@ -151,7 +149,6 @@
             <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>
@@ -182,7 +179,6 @@
             <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>
@@ -217,7 +213,6 @@
             <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>

--
Gitblit v1.9.3