LEFT JOIN plm_bom_header as b on a.site = b.site and a.part_no = b.part_no and a.eng_chg_level = b.eng_chg_level and a.bom_type = b.bom_type
LEFT JOIN plm_bom_header as b on a.site = b.site and a.part_no = b.part_no and a.eng_chg_level = b.eng_chg_level and a.bom_type = b.bom_type
WHERE a.site = #{site} and a.part_no = #{partNo} and a.bom_type = 'Manufacturing' and b.eff_phase_out_date <![CDATA[>=]]> getDate()
WHERE a.site = #{site} and a.part_no = #{partNo} and a.bom_type = 'Manufacturing'
</select>
</select>
<!-- 查询Routing替代 -->
<!-- 查询Routing替代 -->
@ -1488,7 +1488,7 @@
a.official_flag
a.official_flag
FROM plm_routing_detail as a
FROM plm_routing_detail as a
LEFT JOIN plm_routing_header as b on a.site = b.site and a.part_no = b.part_no and a.routing_revision = b.routing_revision and a.routing_type = b.routing_type
LEFT JOIN plm_routing_header as b on a.site = b.site and a.part_no = b.part_no and a.routing_revision = b.routing_revision and a.routing_type = b.routing_type
where a.site = #{site} and a.part_no = #{partNo} and a.routing_type = 'Manufacturing' and b.phase_out_date is null
where a.site = #{site} and a.part_no = #{partNo} and a.routing_type = 'Manufacturing'