From 03a3edee9ff27fa9bb4b32dcda08e279c7c094c8 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期五, 28 十一月 2025 17:30:11 +0800
Subject: [PATCH] 功能修改

---
 multi-system/src/main/resources/mapper/system/CatalogueMapper.xml |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/CatalogueMapper.xml b/multi-system/src/main/resources/mapper/system/CatalogueMapper.xml
index d141aad..eb12005 100644
--- a/multi-system/src/main/resources/mapper/system/CatalogueMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/CatalogueMapper.xml
@@ -102,7 +102,11 @@
             `number`,
             `mess`,
             `type`,
+            `file_name`,
+            `file_path`,
+            `is_file`,
             `del_flag`,
+            `sort`,
             `create_by`,
             `create_time`,
             `update_by`,
@@ -116,6 +120,14 @@
         <if test="companyId!=null and companyId!=''">
             and company_id = #{companyId}
         </if>
+        <if test="number!=null">
+            and (
+            CAST(SUBSTRING_INDEX(number, '.', 1) AS UNSIGNED) >= 4
+            OR
+            number LIKE '4.%'
+            OR number = '4'
+            )
+        </if>
         ORDER BY
         CAST(SUBSTRING_INDEX(number, '.', 1) AS UNSIGNED) ASC,
         CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(number, '.', 2), '.', -1) AS UNSIGNED) ASC,  -- 第二级
@@ -125,8 +137,12 @@
         THEN SUBSTRING_INDEX(number, '.', -1)
         ELSE '0'
         END AS UNSIGNED
-        ) ASC,
-        create_time asc
+        ) ASC
+        <if test="type!=1 and type!=null">
+            ,sort asc
+        </if>
+        ,create_time asc
+
     </select>
     <select id="selectCatalogueDataList" resultType="com.gkhy.exam.system.domain.vo.CatalogueDataVo">
         SELECT

--
Gitblit v1.9.2