|
|
|
@ -481,7 +481,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
mrw.workTime,mrw.useMan,mrw.uploadStatus,mrw.unit,
|
|
|
|
|
pow.order_code orderCode,pow.quantity_split quantity,
|
|
|
|
|
pow.workorder_code_sap workorderCodeSap,
|
|
|
|
|
pow.product_date productDate
|
|
|
|
|
pow.product_date productDate,
|
|
|
|
|
mrw.uploadTime,
|
|
|
|
|
mrw.uploadMsg
|
|
|
|
|
from (
|
|
|
|
|
select workorder_code workorderCode,
|
|
|
|
|
product_code productCode,
|
|
|
|
@ -493,7 +495,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
sum(work_time) workTime,
|
|
|
|
|
sum(use_man) useMan,
|
|
|
|
|
upload_status uploadStatus,
|
|
|
|
|
<!--,upload_time uploadTime,-->
|
|
|
|
|
upload_time uploadTime,
|
|
|
|
|
upload_msg uploadMsg,
|
|
|
|
|
unit
|
|
|
|
|
from mes_report_work
|
|
|
|
|
where del_flag = '0' and parent_order = '0'
|
|
|
|
@ -505,7 +508,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="uploadStatus != null and uploadStatus != ''"> and upload_status = #{uploadStatus}</if>
|
|
|
|
|
group by workorder_code, product_code,product_name,machine_code,machine_name,shift_code
|
|
|
|
|
,upload_status,unit
|
|
|
|
|
<!--,upload_time-->
|
|
|
|
|
,upload_time,upload_msg
|
|
|
|
|
) mrw
|
|
|
|
|
left join pro_order_workorder pow on mrw.workorderCode = pow.workorder_code
|
|
|
|
|
<where>
|
|
|
|
|