|
|
|
@ -79,8 +79,7 @@ |
|
|
|
SELECT top 1 a.id,a.site,a.code_no,a.project_id,a.test_part_no,a.status,a.rev_no,a.work_center_no,a.ECN_flag,a.ECN_no, |
|
|
|
a.ECN_address,a.remark,a.create_date,a.create_by,a.update_date,a.update_by,b.final_part_no,dbo.plm_get_projectBaseDesc(b.part_type,'part_type') partTypeDesc, |
|
|
|
b.part_type,b.part_name,b.part_desc,b.part_spec,dbo.plm_get_technicalBaseDesc(a.status,'status') statusDesc,a.proofing_no, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer,stage,process, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer,stage,process,remarkPage, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id,a.ori_code_no |
|
|
|
FROM plm_technical_specification_sheet a |
|
|
|
left join view_Project_Part b on a.site=b.site and a.project_id=b.project_id and a.test_part_no=b.test_part_no |
|
|
|
@ -128,7 +127,7 @@ |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
<update id="updateBMBasicInformation" > |
|
|
|
update plm_technical_specification_sheet set status=#{status},stage=#{stage} |
|
|
|
update plm_technical_specification_sheet set status=#{status},stage=#{stage},remarkPage=#{remarkPage} |
|
|
|
,rev_no=#{revNo},ECN_no=#{ecnNo},ECN_flag=#{ecnFlag},ECN_address=#{ecnAddress},update_date=GetDate(),update_by=#{updateBy} where site=#{site} |
|
|
|
and code_no=#{codeNo} |
|
|
|
</update> |
|
|
|
@ -260,8 +259,10 @@ a.wiRevison,a.wiDate,a.routingRemark,a.routingAction, |
|
|
|
|
|
|
|
<insert id="savePlmBmPropertiesValueData"> |
|
|
|
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 |
|
|
|
select #{site},#{buNo},#{codeNo},#{type},1,b.code_desc,a.seq_no,a.properties_item_no,c.DefaultValue,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 |
|
|
|
left join plm_properties_item c on a.properties_item_no=c.ItemNo and a.site=c.site and a.function_type=c.ItemType |
|
|
|
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> |
|
|
|
|
|
|
|
|