From d20289401001352bb20ca0bd614f4ef3e2c749d0 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 06 八月 2024 17:43:33 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

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

diff --git a/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
index d6672cf..3dcd623 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
@@ -31,7 +31,15 @@
         where
             date(a.create_time)  BETWEEN DATE_FORMAT(DATE(NOW()), '%Y-%m-01') AND DATE(NOW())
     </select>
-    
+
+    <select id="selectMaxOrderIdByYear">
+        select
+            ifnull(SUBSTR(max(order_id) from 5),0)
+        from
+            `order` as a
+        where
+            year(a.create_time)  = year(NOW())
+    </select>
 
     <update id="updateOrderParameter">
         update `order` o

--
Gitblit v1.8.0