From 92f4295f9b3255f8615775d3a254c2e7f20409c1 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 09 十二月 2025 12:29:18 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml
index 22c22c8..f685d82 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml
@@ -9,6 +9,7 @@
         from
             basic_data as a
         where a.basic_type=#{type}
+        order by sort
     </select>
     <select id="getOrderBasicDataByTypeAndChildType">
         select
@@ -16,6 +17,7 @@
         from
             basic_data as a
         where a.basic_type=#{type} and a.basic_category = #{childType}
+        order by sort
     </select>
 
     <select id="getOrderBasicDataType">
@@ -41,4 +43,12 @@
         select * from basic_data
         group by basic_category
     </select>
+
+    <select id="getBasicDataMaxSort">
+        select
+            ifnull(max(sort),0)
+        from
+            basic_data as a
+        where a.basic_category=#{type}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0