zhaoxiaolin 8 months ago
parent cb33c605cf
commit 196bde4ba4

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

Loading…
Cancel
Save