|
@@ -496,7 +496,7 @@
|
|
|
join aps_process_operation_out_mater apoom on apo.id=apoom.MAINID-- 作业输出物料
|
|
|
join aps_blank_order abo on apo.BLANKID = abo.id
|
|
|
join aps_production_order apro on apro.ID = abo.PRODUCTIONORDERID
|
|
|
- join aps_product_detail apd on apoom.ORDERDETAILID = apd.id and apd.DELETED='0' -- 订单产品明细
|
|
|
+ left join aps_product_detail apd on apoom.ORDERDETAILID = apd.id and apd.DELETED='0' -- 订单产品明细
|
|
|
left join aps_production_merge_order apmd on apmd.ORDERNO = apd.MERGEORDERNUMBER and apmd.DELETED='0'
|
|
|
where
|
|
|
apope.deleted='0' and apo.DELETED='0' and abo.DELETED='0' and apro.deleted='0'
|