This commit is contained in:
zds
2022-07-04 12:54:00 +08:00
parent 648c12e66d
commit 17c010f0b7
2 changed files with 5 additions and 0 deletions

View File

@@ -57,12 +57,14 @@
mb.material_name,
mb.ext_id,
device.device_code,
producmaterialext.old_mark,
device.device_name,
Formula.create_name AS formula_name,
Formula.create_time AS formula_time
FROM
PDM_BI_WorkOrder WorkOrder
LEFT JOIN md_me_materialbase mb ON mb.material_id = WorkOrder.material_id
LEFT JOIN md_me_producmaterialext producmaterialext ON mb.material_id = producmaterialext.material_id
LEFT JOIN em_bi_deviceinfo device ON device.device_id = WorkOrder.device_id
LEFT JOIN PDM_BI_Formula Formula ON (Formula.workorder_id = WorkOrder.workorder_id and Formula.bucket_type='01' AND Formula.is_delete = '0')
WHERE
@@ -102,12 +104,14 @@
mb.material_name,
device.device_code,
device.device_name,
producmaterialext.old_mark,
Formula.create_name AS formula_name,
Formula.create_time AS formula_time,
productprocessroutedtl.workprocedure_code AS frist_workprocedure_code
FROM
PDM_BI_WorkOrder WorkOrder
LEFT JOIN md_me_materialbase mb ON mb.material_id = WorkOrder.material_id
LEFT JOIN md_me_producmaterialext producmaterialext ON mb.material_id = producmaterialext.material_id
LEFT JOIN em_bi_deviceinfo device ON device.device_id = WorkOrder.device_id
LEFT JOIN PDM_BI_Formula Formula ON (Formula.workorder_id = WorkOrder.workorder_id
AND Formula.bucket_type = '01'