@ -12,6 +12,12 @@
,a.picture_addess,a.customerPictureChangeRemark,a.productionFileComments,a.bom_type,a.eng_chg_level,a.bom_alternative_no,a.routing_type,a.routing_revision,
a.routing_alternative_no,a.pod,
a.mpOperator,dbo.get_userDisPlay(a.mpOperator) mpOperatorName
, a.cqcOperator,dbo.get_userDisPlay(a.cqcOperator) cqcOperatorName
, a.faiOperator,dbo.get_userDisPlay(a.faiOperator) faiOperatorName
,a.peOperater,dbo.get_userDisPlay(a.peOperater) peOperaterName
,a.csOperater,dbo.get_userDisPlay(a.csOperater) csOperaterName
,a.dccOperater,dbo.get_userDisPlay(a.dccOperater) dccOperaterName
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
left join plm_project_info c on a.site=c.site and a.project_id=c.project_id
@ -43,8 +49,12 @@
<insert id= "saveTechnicalSpecificationSheet" >
insert into plm_technical_specification_sheet(site,code_no,project_id,test_part_no,status,rev_no,ECN_flag,ECN_no,ECN_address,remark,
create_date,create_by,proofing_no,ori_code_no,bom_type,eng_chg_level,bom_alternative_no,routing_type,routing_revision,routing_alternative_no,stage,materialType,step_id) values (#{site},#{codeNo},#{projectId},#{testPartNo},#{status},#{revNo},#{ecnFlag},#{ecnNo},#{ecnAddress}
,#{remark},GetDate(),#{createBy},#{proofingNo},#{oriCodeNo},#{bomType},#{engChgLevel,jdbcType=INTEGER},#{bomAlternativeNo},#{routingType},#{routingRevision,jdbcType=INTEGER},#{routingAlternativeNo},'Sample','Label',10)
create_date,create_by,proofing_no,ori_code_no,bom_type,eng_chg_level,bom_alternative_no,routing_type,routing_revision,routing_alternative_no,stage,materialType,step_id
,cqcOperator,faiOperator,peOperater,csOperater,dccOperater,mpOperator)
values
(#{site},#{codeNo},#{projectId},#{testPartNo},#{status},#{revNo},#{ecnFlag},#{ecnNo},#{ecnAddress}
,#{remark},GetDate(),#{createBy},#{proofingNo},#{oriCodeNo},#{bomType},#{engChgLevel,jdbcType=INTEGER},#{bomAlternativeNo},#{routingType},#{routingRevision,jdbcType=INTEGER},#{routingAlternativeNo},'Sample','Label',10
,#{cqcOperator},#{faiOperator},#{peOperater},#{csOperater},#{dccOperater},#{mpOperator})
</insert>
<insert id= "saveTechnicalSpecificationTeams" >
@ -54,7 +64,10 @@
<update id= "updateTechnicalSpecificationSheet" >
update plm_technical_specification_sheet set project_id=#{projectId},test_part_no=#{testPartNo},status=#{status}
,rev_no=#{revNo},ECN_no=#{ecnNo},ECN_flag=#{ecnFlag},ECN_address=#{ecnAddress},remark=#{remark},update_date=GetDate(),update_by=#{updateBy} where id=#{id}
,rev_no=#{revNo},ECN_no=#{ecnNo},ECN_flag=#{ecnFlag},ECN_address=#{ecnAddress},remark=#{remark},update_date=GetDate(),update_by=#{updateBy}
,cqcOperator=#{cqcOperator},faiOperator=#{faiOperator},peOperater=#{peOperater},
csOperater=#{csOperater},dccOperater=#{dccOperater},mpOperator=#{mpOperator}
where id=#{id}
</update>
<delete id= "deleteTechnicalSpecificationTeamsForBase" >
@ -929,7 +942,7 @@ pressure,updateDate,updateBy,remark) values
delete from plm_bm_printIndigoColor where id=#{id}
</delete>
<select id= "selectTechnicalSpecification" parameterType= "string" resultType= "PlmTechnicalSpecificationSheet" >
<select id= "selectTechnicalSpecification" resultType= "PlmTechnicalSpecificationSheet" >
SELECT
id,site,code_no,proofing_no,project_id,test_part_no,status,rev_no,work_center_no,ECN_flag,ECN_no,ECN_address,remark,
create_date,create_by,update_date,update_by,picture_addess,customerPictureChangeRemark,productionFileComments,
@ -959,4 +972,11 @@ step_id,reject_flag,reject_step_id,mpOperator
left join sys_user as b on a.operator_id = b.username
where a.site = #{site} and a.code_no = #{codeNo}
</select>
<select id= "getBMStatusDesc" resultType= "PlmTechnicalSpecificationSheetData" >
SELECT
id,site,code_no,dbo.plm_get_technicalBaseDesc(a.status,'status') statusDesc
FROM plm_technical_specification_sheet a
where a.site = #{site} and a.code_no = #{codeNo}
</select>
</mapper>