From d61ac67e37290019e5ead92f034cdfe1b5a433a9 Mon Sep 17 00:00:00 2001
From: 你好啊 <1536384743@qq.com>
Date: 星期三, 07 八月 2024 17:06:45 +0800
Subject: [PATCH] 小片页面添加弧长字段
---
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