From 2f44fc75c78e9291f07a0864199235cde689fa8d Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期五, 12 十二月 2025 12:29:37 +0800
Subject: [PATCH] 订单明细报表新增楼层编号跟其他列

---
 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