From 17531927aa5e222afdfef87e0f63bea0fc0597b1 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Thu, 11 Apr 2024 21:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=89=B9=E6=AC=A1=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E9=A2=86=E6=96=99=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/mes/MesReportWorkConsumeMapper.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml index 55379f8b..0263194d 100644 --- a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml @@ -117,10 +117,11 @@ mpd.quantity planQuantity, mrwc.parent_order parentOrder from mes_report_work_consume mrwc - left join pro_order_workorder pow on mrwc.workorder_code = pow.workorder_code - left join mes_prepare_detail mpd on mpd.parent_work_order = pow.belong_work_order - and mpd.material_code = mrwc.material_code - and mpd.del_flag = '0' + left join pro_order_workorder pow on mrwc.workorder_code = pow.workorder_code + left join mes_prepare mp on mp.workorder_code = pow.workorder_code and mp.del_flag='0' + left join mes_prepare_detail mpd on mpd.prepare_id = mp.prepare_id + and mpd.material_code = mrwc.material_code + and mpd.del_flag = '0' where mrwc.del_flag = '0' and pow.del_flag = '0' and mrwc.workorder_code = #{workorderCode} order by mrwc.recoil,mrwc.attr1