From 9f83ffd84ac9e720c3d2c6fea5eb9e9202a7211c Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 03 九月 2024 10:27:12 +0800
Subject: [PATCH] 解决报工新增界面保存失败问题,补片审核添加日志,检测审核失败问题
---
north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml | 7 ++++---
1 files changed, 4 insertions(+), 3 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 3dcd623..543e175 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
@@ -33,12 +33,13 @@
</select>
<select id="selectMaxOrderIdByYear">
- select
- ifnull(SUBSTR(max(order_id) from 5),0)
+ select ifnull((select
+ SUBSTR(order_id from 5)
from
`order` as a
where
- year(a.create_time) = year(NOW())
+ year(a.create_time) = year(now())
+ order by id desc limit 1),0) temp
</select>
<update id="updateOrderParameter">
--
Gitblit v1.8.0