|
|
|
@ -990,10 +990,30 @@ id |
|
|
|
|
|
|
|
|
|
|
|
<select id="searchBMBomDetail" resultType="com.spring.modules.part.vo.BomDetailVo"> |
|
|
|
select a.site,a.part_no,a.alternative_no,a.alternative_description,a.bom_type,a.eng_chg_level,a.min_lot_qty,a.default_flag, |
|
|
|
a.note_text,a.create_date,a.create_by,a.update_date,a.update_by,a.status,a.official_flag,B.eff_phase_in_date,B.eff_phase_out_date |
|
|
|
from plm_bom_detail a left join plm_bom_header b on a.site=b.site and a.part_no=b.part_NO AND A.eng_chg_level=B.eng_chg_level |
|
|
|
where a.part_no=#{partNo} and a.site=#{site} and a.bom_type!='Repair' and a.status='Buildable' |
|
|
|
select a.site, |
|
|
|
a.part_no, |
|
|
|
b.alternative_no, |
|
|
|
b.alternative_description, |
|
|
|
a.bom_type, |
|
|
|
a.eng_chg_level, |
|
|
|
b.min_lot_qty, |
|
|
|
b.default_flag, |
|
|
|
a.note_text, |
|
|
|
a.create_date, |
|
|
|
a.create_by, |
|
|
|
a.update_date, |
|
|
|
a.update_by, |
|
|
|
b.status, |
|
|
|
a.official_flag, |
|
|
|
a.eff_phase_in_date, |
|
|
|
a.eff_phase_out_date |
|
|
|
from plm_bom_header a |
|
|
|
left join plm_bom_detail b |
|
|
|
on a.site = b.site and a.part_no = b.part_NO and a.bom_type = b.bom_type AND A.eng_chg_level = B.eng_chg_level |
|
|
|
where a.part_no = #{partNo} |
|
|
|
and a.site = #{site} |
|
|
|
and a.bom_type != 'Repair' |
|
|
|
and b.status = 'Buildable' |
|
|
|
</select> |
|
|
|
<update id="updateBMBomRev"> |
|
|
|
update plm_technical_specification_sheet set bom_type=#{bomType},eng_chg_level=#{engChgLevel,jdbcType=INTEGER}, |
|
|
|
@ -1005,9 +1025,23 @@ id |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="searchRouteDetail" resultType="com.spring.modules.part.vo.RoutingDetailVo"> |
|
|
|
select a.site,a.part_no,a.routing_revision,a.routing_type,a.alternative_no,a.alternative_description,a.status,a.official_flag,b.phase_in_date,b.phase_out_date |
|
|
|
from plm_routing_detail a left join plm_routing_header b on a.site=b.site and a.part_no=b.part_NO AND A.routing_revision=B.routing_revision |
|
|
|
where a.site=#{site} and a.part_no=#{partNo} and a.routing_type!='Repair' and a.status='Buildable' |
|
|
|
select a.site, |
|
|
|
a.part_no, |
|
|
|
a.routing_revision, |
|
|
|
a.routing_type, |
|
|
|
b.alternative_no, |
|
|
|
b.alternative_description, |
|
|
|
b.status, |
|
|
|
a.official_flag, |
|
|
|
a.phase_in_date, |
|
|
|
a.phase_out_date |
|
|
|
from plm_routing_header a |
|
|
|
left join plm_routing_detail b |
|
|
|
on a.site = b.site and a.part_no = b.part_NO and a.routing_type = b.routing_type AND A.routing_revision = B.routing_revision |
|
|
|
where a.site = #{site} |
|
|
|
and a.part_no = #{partNo} |
|
|
|
and a.routing_type != 'Repair' |
|
|
|
and b.status = 'Buildable' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="searchBMRemarkPage" resultType="PlmTechnicalSpecificationSheetData"> |
|
|
|
|