From 6671f69b4d24869f3f321a15f511c2ad61b64c04 Mon Sep 17 00:00:00 2001 From: sfd <sun.sunshine@163.com> Date: 星期一, 19 五月 2025 15:12:48 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.50.149:8085/r/aps-backend into dev --- aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessStatMapper.xml | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessStatMapper.xml index ece5968..b25cfcc 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessStatMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessStatMapper.xml @@ -143,10 +143,13 @@ (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 + pl.plan_end_day, + COALESCE(rd.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_number is not null and rt.work_order_no is not null and pl.plan_end_day is not null + left join aps_plate_standard_require_order_end_day as rd on pl.document_number = rd.doc_no and rd.del_flag =0 + where pl.document_number is not null and rt.work_order_no is not null and + (pl.plan_end_day is not null or rd.plan_end_day is not null ) order by rt.work_order_no asc, rt.process_number desc </select> <update id="removeOtherStat" parameterType="String"> -- Gitblit v1.9.3