|
|
|
@ -538,7 +538,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
mrw.work_time workTime,
|
|
|
|
|
mrw.use_man useMan,
|
|
|
|
|
mrw.create_time createTime,
|
|
|
|
|
pow.workorder_code_sap workorderCodeSap
|
|
|
|
|
pow.workorder_code_sap workorderCodeSap,
|
|
|
|
|
mrw.remark
|
|
|
|
|
from mes_report_work mrw
|
|
|
|
|
left join pro_order_workorder pow on mrw.workorder_code = pow.workorder_code
|
|
|
|
|
where mrw.del_flag='0' and pow.del_flag = '0'
|
|
|
|
@ -575,6 +576,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
mrw.product_name productName,
|
|
|
|
|
mrw.sac1,
|
|
|
|
|
mrw.sac2,
|
|
|
|
|
mrw.remark,
|
|
|
|
|
equ.sap_code sapCode
|
|
|
|
|
from (
|
|
|
|
|
select
|
|
|
|
@ -583,12 +585,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
sum(work_time) sac1,
|
|
|
|
|
sum(work_time*use_man) sac2,
|
|
|
|
|
product_code,
|
|
|
|
|
product_name
|
|
|
|
|
product_name,
|
|
|
|
|
remark
|
|
|
|
|
from
|
|
|
|
|
mes_report_work
|
|
|
|
|
where upload_status != #{uploadStatus} and prod_type = #{prodType}
|
|
|
|
|
and workorder_code = #{workorderCode}
|
|
|
|
|
group by workorder_code,product_code,product_name
|
|
|
|
|
group by workorder_code,product_code,product_name,remark
|
|
|
|
|
) mrw
|
|
|
|
|
left join pro_order_workorder ow on mrw.workorder_code = ow.workorder_code
|
|
|
|
|
left join base_equipment equ on equ.equipment_code = ow.workorder_name
|
|
|
|
@ -865,7 +868,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
work_time = #{item.workTime},
|
|
|
|
|
use_man = #{item.useMan},
|
|
|
|
|
update_by = #{item.updateBy},
|
|
|
|
|
update_time = #{item.updateTime}
|
|
|
|
|
update_time = #{item.updateTime},
|
|
|
|
|
remark = #{item.remark}
|
|
|
|
|
where
|
|
|
|
|
id = #{item.id}
|
|
|
|
|
</foreach>
|
|
|
|
|