From 7b87ac9846e8bfdd5a7a64e4c9623408220845b8 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 01 三月 2024 09:29:07 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
---
north-glass-erp/target/classes/mapper/pp/ProductionScheduling.xml | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/target/classes/mapper/pp/ProductionScheduling.xml b/north-glass-erp/target/classes/mapper/pp/ProductionScheduling.xml
index 3362936..825f97d 100644
--- a/north-glass-erp/target/classes/mapper/pp/ProductionScheduling.xml
+++ b/north-glass-erp/target/classes/mapper/pp/ProductionScheduling.xml
@@ -121,4 +121,38 @@
left join production_scheduling as ps on ps.order_id=od.order_id and ps.order_number=od.order_number
where od.create_time between #{selectTime1} and #{selectTime2}
</select>
+
+ <select id="selectMaxId">
+ select
+ COUNT(ps.scheduling_id)
+ from
+ `production_scheduling` as ps
+ where
+ date(ps.create_time) = curdate()
+ </select>
+
+ <insert id="insertSelective">
+ insert into production_scheduling(
+ scheduling_id,
+ order_id,
+ order_number,
+ processes,
+ scheduling_quantity,
+ scheduled_start_time,
+ plan_end_time,
+ notes,
+ create_time
+ )
+ VALUES(
+ #{schedulingId},
+ #{orderId},
+ #{orderNumber},
+ #{processes},
+ #{schedulingQuantity},
+ #{scheduledStartTime},
+ #{planEndTime},
+ #{notes},
+ now()
+ )
+ </insert>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0