|
|
|
@ -645,4 +645,40 @@ |
|
|
|
WHERE site = #{site} and part_no = #{partNo} and eng_chg_level = #{engChgLevel} and bom_type = #{bomType} and alternative_no = #{alternativeNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 材料信息列表 --> |
|
|
|
<select id="refreshBomInfo" resultType="com.xujie.sys.modules.part.vo.BomHeaderVo"> |
|
|
|
SELECT |
|
|
|
a.site, |
|
|
|
a.bu_no, |
|
|
|
dbo.get_bu_desc(a.site, a.bu_no) as buDesc, |
|
|
|
a.part_no, |
|
|
|
dbo.qc_get_part_desc(a.site, a.bu_no, a.part_no) as partDesc, |
|
|
|
a.eng_chg_level, |
|
|
|
a.bom_type, |
|
|
|
a.note_text, |
|
|
|
a.eff_phase_in_date, |
|
|
|
a.eff_phase_out_date, |
|
|
|
a.eng_revision, |
|
|
|
a.type_flag, |
|
|
|
a.net_weight, |
|
|
|
a.create_date, |
|
|
|
a.create_by, |
|
|
|
a.update_date, |
|
|
|
a.update_by, |
|
|
|
b.umid2 as printUnit, |
|
|
|
dbo.qc_get_um_name(a.site, b.umid2) as printUnitName, |
|
|
|
isnull(c.yield_rate, 100) as yieldRate, |
|
|
|
#{alternativeNo} as alternativeNo |
|
|
|
FROM plm_bom_header as a |
|
|
|
left join part as b on a.site = b.site and a.bu_no = b.sourceBu and a.part_no = b.part_no |
|
|
|
left join part_product_group as c on b.site = c.site and b.sourceBu = c.bu_no and b.product_group_id2 = c.product_group_id |
|
|
|
<where> |
|
|
|
a.site = #{site} |
|
|
|
and a.bu_no = #{buNo} |
|
|
|
AND a.part_no = #{partNo} |
|
|
|
AND a.bom_type = #{bomType} |
|
|
|
AND a.eng_chg_level = #{engChgLevel} |
|
|
|
and c.type = '2' |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</mapper> |