From ec49ea0aa44ebbbe2faea2894539ac4ca515bd6b Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期三, 14 八月 2024 18:16:40 +0800
Subject: [PATCH] 添加流程排序汇总查询,修改报工查询流程卡显示层
---
north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml | 11 ++++++++++-
1 files changed, 10 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..543e175 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,16 @@
where
date(a.create_time) BETWEEN DATE_FORMAT(DATE(NOW()), '%Y-%m-01') AND DATE(NOW())
</select>
-
+
+ <select id="selectMaxOrderIdByYear">
+ select ifnull((select
+ SUBSTR(order_id from 5)
+ from
+ `order` as a
+ where
+ year(a.create_time) = year(now())
+ order by id desc limit 1),0) temp
+ </select>
<update id="updateOrderParameter">
update `order` o
--
Gitblit v1.8.0