|
|
|
@ -319,7 +319,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
from mes_material_transfer_result mt
|
|
|
|
|
left join base_equipment equ on mt.equipmentCode = equ.equipment_code
|
|
|
|
|
left join pro_order_workorder pow on pow.workorder_id = mt.OrderCode
|
|
|
|
|
where 1=1
|
|
|
|
|
where mt.rfid_status = '1'
|
|
|
|
|
<if test="productDateStart != null "> and CONVERT(varchar(30),mt.update_time, 120) >= #{productDateStart}</if>
|
|
|
|
|
<if test="productDateEnd != null "> and #{productDateEnd} > CONVERT(varchar(30),mt.update_time, 120)</if>
|
|
|
|
|
<if test="shiftId != null and shiftId != ''">
|
|
|
|
@ -360,7 +360,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
equipmentCode,
|
|
|
|
|
OrderCode
|
|
|
|
|
from mes_material_transfer_result
|
|
|
|
|
where 1=1
|
|
|
|
|
where rfid_status = '1'
|
|
|
|
|
<if test="productDateStart != null "> and CONVERT(varchar(30),update_time, 120) >= #{productDateStart}</if>
|
|
|
|
|
<if test="productDateEnd != null "> and #{productDateEnd} > CONVERT(varchar(30),update_time, 120)</if>
|
|
|
|
|
)mt
|
|
|
|
@ -552,26 +552,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
mrw.quantity_feedback quantityFeedback,
|
|
|
|
|
mrw.product_code productCode,
|
|
|
|
|
mrw.product_name productName,
|
|
|
|
|
mrw.sac1,
|
|
|
|
|
mrw.sac2
|
|
|
|
|
<!--,
|
|
|
|
|
rte.tec_machine sac1,
|
|
|
|
|
rte.tec_man sac2,
|
|
|
|
|
rte.tec_depreciation sac3,
|
|
|
|
|
rte.tec_other sac4,
|
|
|
|
|
rte.tec_conf_acivity5 sac5,
|
|
|
|
|
rte.tec_conf_acivity6 sac6
|
|
|
|
|
-->
|
|
|
|
|
from (
|
|
|
|
|
select
|
|
|
|
|
workorder_code,
|
|
|
|
|
sum(quantity_feedback) quantity_feedback,
|
|
|
|
|
sum(round( work_time/use_man,2)) sac1,
|
|
|
|
|
use_man sac2,
|
|
|
|
|
product_code,
|
|
|
|
|
product_name
|
|
|
|
|
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,use_man
|
|
|
|
|
) mrw
|
|
|
|
|
left join pro_order_workorder ow on mrw.workorder_code = ow.workorder_code
|
|
|
|
|
left join pro_route rte on rte.route_code = ow.route_code
|
|
|
|
|
<!--left join pro_route rte on rte.route_code = ow.route_code-->
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getEndReport" resultType="com.op.mes.domain.MesReportWork">
|
|
|
|
|
select end_report endReport
|
|
|
|
|