|
|
|
@ -245,7 +245,7 @@ a.wiRevison,a.wiDate,a.routingRemark,a.routingAction, |
|
|
|
insert into plm_bm_propertiesValue(Site,bu_no,PartNo,CodeNo,SubCodeSeqNo,SubCodeDesc,ItemNo,PropertiesItemNo,TextValue,NumValue,RecordType,order_id) |
|
|
|
select #{site},#{buNo},#{codeNo},#{type},1,b.code_desc,a.seq_no,a.properties_item_no,null,null,'BM',a.order_id |
|
|
|
from plm_bm_model_header b left join plm_properties_model_detail a on a.site=${site} and a.function_type='BM' and a.code_no=b.properties_code_no |
|
|
|
where b.site=${site} and b.bu_no=#{buNo} and b.function_type='BM' and b.code_no=#{type} |
|
|
|
where b.site=${site} and b.bu_no=#{buNo} and b.function_type='BM' and b.code_no=#{type} and a.code_no is not null |
|
|
|
</insert> |
|
|
|
|
|
|
|
<select id="searchBMPropertiesValue" resultType="PlmBmPropertiesValueData"> |
|
|
|
@ -438,4 +438,14 @@ update_by) |
|
|
|
and bu_no=#{buNo} and code_no=#{codeNo} |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="checkBMModelHeader" resultType="PlmBmModelHeaderData"> |
|
|
|
select properties_code_no from plm_bm_model_header where site=#{site} |
|
|
|
and bu_no=#{buNo} and code_no=#{codeNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="searchBMPropertiesHeaderForBM" resultType="PlmBmModelHeaderData"> |
|
|
|
select properties_code_no from plm_bm_model_header where site=#{site} |
|
|
|
and bu_no=#{buNo} and code_no=#{type} |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |