|
|
@ -449,8 +449,8 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getMesLineInfo" resultType="com.op.mes.domain.MesLine">
|
|
|
|
<select id="getMesLineInfo" resultType="com.op.mes.domain.MesLine">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
ml.use_man standarMan,
|
|
|
|
mlp.use_man standarMan,
|
|
|
|
ml.efficiency standarXl,
|
|
|
|
mlp.efficiency standarXl,
|
|
|
|
mr.use_man actMan,
|
|
|
|
mr.use_man actMan,
|
|
|
|
mr.work_time,
|
|
|
|
mr.work_time,
|
|
|
|
mr2.quantity_feedback,
|
|
|
|
mr2.quantity_feedback,
|
|
|
@ -460,10 +460,9 @@
|
|
|
|
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 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 ml on mr.machine_code = ml.line_code
|
|
|
|
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.belong_to = ml.id and mr2.product_code = mlp.product_code
|
|
|
|
where mlp.line_code = #{equCode}
|
|
|
|
where ml.line_code = #{equCode}
|
|
|
|
and mlp.del_flag='0' and mlp.del_flag='0'
|
|
|
|
and ml.del_flag='0' and mlp.del_flag='0'
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|