|
|
@ -332,6 +332,7 @@
|
|
|
|
pow.product_code productCode,
|
|
|
|
pow.product_code productCode,
|
|
|
|
pow.product_name productName,
|
|
|
|
pow.product_name productName,
|
|
|
|
pow.workorder_code_sap workorderCodeSap,
|
|
|
|
pow.workorder_code_sap workorderCodeSap,
|
|
|
|
|
|
|
|
pow.workorder_code workorderCode,
|
|
|
|
pow.quantity_split totalNum,
|
|
|
|
pow.quantity_split totalNum,
|
|
|
|
pow.unit
|
|
|
|
pow.unit
|
|
|
|
from pro_order_workorder pow
|
|
|
|
from pro_order_workorder pow
|
|
|
@ -457,7 +458,9 @@
|
|
|
|
ROUND( mr2.quantity_feedback/mr.work_time,2) AS actXl
|
|
|
|
ROUND( mr2.quantity_feedback/mr.work_time,2) AS actXl
|
|
|
|
from (
|
|
|
|
from (
|
|
|
|
select top 1 use_man,work_time,machine_code,report_code,product_code
|
|
|
|
select top 1 use_man,work_time,machine_code,report_code,product_code
|
|
|
|
from mes_report_work where del_flag = '0' and machine_code = #{equCode} and parent_order !='0' order by create_time desc
|
|
|
|
from mes_report_work where del_flag = '0' and machine_code = #{equCode}
|
|
|
|
|
|
|
|
and workorder_code = #{workorderCode}
|
|
|
|
|
|
|
|
and parent_order !='0' order by create_time desc
|
|
|
|
) mr
|
|
|
|
) mr
|
|
|
|
left join mes_report_work mr2 on mr2.report_code = mr.report_code and mr2.parent_order ='0'
|
|
|
|
left join mes_report_work mr2 on mr2.report_code = mr.report_code and mr2.parent_order ='0'
|
|
|
|
left join mes_line_product mlp on mlp.line_code = mr.machine_code and mr2.product_code = mlp.product_code
|
|
|
|
left join mes_line_product mlp on mlp.line_code = mr.machine_code and mr2.product_code = mlp.product_code
|
|
|
|