From 7af9ce0cde405ff7a48012b03bedf2884c09ab15 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期一, 12 五月 2025 15:48:09 +0800
Subject: [PATCH] 钣金计划:从Redis中读取库存信息
---
aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml
index 19bbd76..9f9a7ca 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml
@@ -131,22 +131,21 @@
</delete>
<select id="queryTempStat" resultMap="ApsPlateProcessStatResult">
- select
- row_number() over (partition by rt.work_order_no order by rt.process_number desc ) as num,
- rt.work_order_no,
- rt.process_name,
- cast(rt.process_number as numeric(18, 2)) as route_process_number,
- cast(pl.process_number as numeric(18, 2)) as current_process_number,
- pl.production_quantity,
- rt.standard_time,
- (rt.standard_time * pl.production_quantity) as process_total_time,
- rt.process_plan_start_day,
- rt.process_plan_end_day,
- pl.plan_end_day as order_plan_end_day
+ select row_number() over (partition by rt.work_order_no order by rt.process_number desc ) as num,
+ rt.work_order_no,
+ rt.process_name,
+ cast(rt.process_number as numeric(18, 2)) as route_process_number,
+ cast(pl.process_number as numeric(18, 2)) as current_process_number,
+ pl.production_quantity,
+ rt.standard_time,
+ (rt.standard_time * pl.production_quantity) as process_total_time,
+ rt.process_plan_start_day,
+ rt.process_plan_end_day,
+ pl.plan_end_day as order_plan_end_day
from aps_plate_plan as pl
left join aps_process_route as rt on pl.document_number = rt.work_order_no
- where pl.document_status in (0,1,2,4)
- order by rt.work_order_no asc , rt.process_number desc
+ where pl.document_number is not null and rt.work_order_no is not null and pl.plan_end_day is not null
+ order by rt.work_order_no asc, rt.process_number desc
</select>
<update id="removeOtherStat" parameterType="String">
delete from aps_plate_process_stat where batch_number != #{batchNumber}
--
Gitblit v1.9.3