From 527cbd85e37842d93d081f33916dca5c6f7156e0 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期日, 24 九月 2023 09:53:58 +0800
Subject: [PATCH] 修改 9.22
---
production-server/src/main/resources/mapper/ManufactureSchedulingMapper.xml | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/production-server/src/main/resources/mapper/ManufactureSchedulingMapper.xml b/production-server/src/main/resources/mapper/ManufactureSchedulingMapper.xml
index fbb0c11..e946e8a 100644
--- a/production-server/src/main/resources/mapper/ManufactureSchedulingMapper.xml
+++ b/production-server/src/main/resources/mapper/ManufactureSchedulingMapper.xml
@@ -9,6 +9,7 @@
FROM manufacture_scheduling m
WHERE m.`manufacture_order_id` = 3
AND m.`state` = 1
+ ORDER BY m.`create_time` DESC
</select>
<select id="selectProduceTable" resultType="map">
@@ -18,6 +19,7 @@
WHERE m.`manufacture_order_id` = #{manOrdId}
AND m.`manufacture_order_id` = o.`id`
AND m.`state` = 1
+ AND m.`go_state` = 1
<if test="productName != null and productName != ''">
AND o.`name` LIKE CONCAT('%', #{productName}, '%')
</if>
@@ -27,6 +29,7 @@
<if test="endTime != null and endTime != ''">
AND m.`end_time` <![CDATA[ <= ]]> #{endTime}
</if>
+ ORDER BY m.`create_time` DESC
</select>
<select id="sePros" resultType="map">
@@ -35,9 +38,15 @@
FROM manufacture_scheduling s, manufacture_order o
WHERE s.`manufacture_order_id` = o.`id`
AND s.`id` = #{schedulingId}
+ ORDER BY s.`create_time` DESC
</select>
<select id="reportSelectScheduling" resultType="map">
-
+ SELECT m.`id`, o.`customer_code`, o.`proname`, o.`name`, o.`specifications`, o.`unit`, m.`scheduled`
+ FROM manufacture_scheduling m, manufacture_order o
+ WHERE m.`state` = 1
+ AND m.`manufacture_order_id` = o.`id`
+ AND m.`go_state` = 1
+ ORDER BY m.`create_time` DESC
</select>
</mapper>
--
Gitblit v1.9.3