|
|
@ -3,7 +3,7 @@ |
|
|
<mapper namespace="com.spring.modules.sampleManagement.dao.TechnicalSpecificationMapper"> |
|
|
<mapper namespace="com.spring.modules.sampleManagement.dao.TechnicalSpecificationMapper"> |
|
|
|
|
|
|
|
|
<select id="technicalSpecificationListSearch" parameterType="PlmTechnicalSpecificationSheetData" resultType="PlmTechnicalSpecificationSheetData"> |
|
|
<select id="technicalSpecificationListSearch" parameterType="PlmTechnicalSpecificationSheetData" resultType="PlmTechnicalSpecificationSheetData"> |
|
|
SELECT 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, |
|
|
|
|
|
|
|
|
SELECT 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.ori_code_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, |
|
|
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,c.bu_no,dbo.plm_get_bu_desc(a.site,c.bu_no) buDesc, |
|
|
b.part_type,b.part_name,b.part_desc,b.part_spec,dbo.plm_get_technicalBaseDesc(a.status,'status') statusDesc,a.proofing_no,c.bu_no,dbo.plm_get_bu_desc(a.site,c.bu_no) buDesc, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer, |
|
|
@ -29,12 +29,13 @@ |
|
|
AND a.test_part_no like #{query.testPartNo} |
|
|
AND a.test_part_no like #{query.testPartNo} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
|
|
|
order by a.code_no desc |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<insert id="saveTechnicalSpecificationSheet"> |
|
|
<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, |
|
|
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) values (#{site},#{codeNo},#{projectId},#{testPartNo},#{status},#{revNo},#{ecnFlag},#{ecnNo},#{ecnAddress} |
|
|
|
|
|
,#{remark},GetDate(),#{createBy},#{proofingNo}) |
|
|
|
|
|
|
|
|
create_date,create_by,proofing_no,ori_code_no) values (#{site},#{codeNo},#{projectId},#{testPartNo},#{status},#{revNo},#{ecnFlag},#{ecnNo},#{ecnAddress} |
|
|
|
|
|
,#{remark},GetDate(),#{createBy},#{proofingNo},#{oriCodeNo}) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
<insert id="saveTechnicalSpecificationTeams"> |
|
|
<insert id="saveTechnicalSpecificationTeams"> |
|
|
@ -71,7 +72,7 @@ |
|
|
b.part_type,b.part_name,b.part_desc,b.part_spec,dbo.plm_get_technicalBaseDesc(a.status,'status') statusDesc,a.proofing_no, |
|
|
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, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id |
|
|
|
|
|
|
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id,a.ori_code_no |
|
|
FROM plm_technical_specification_sheet a |
|
|
FROM plm_technical_specification_sheet a |
|
|
left join plm_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_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 |
|
|
left join plm_project_info c on a.site=c.site and a.project_id=c.project_id |
|
|
@ -94,7 +95,7 @@ |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id, |
|
|
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id, |
|
|
a.proofing_no |
|
|
|
|
|
|
|
|
a.proofing_no,a.ori_code_no |
|
|
FROM plm_technical_specification_sheet a |
|
|
FROM plm_technical_specification_sheet a |
|
|
left join plm_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_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 |
|
|
left join plm_project_info c on a.site=c.site and a.project_id=c.project_id |
|
|
@ -122,7 +123,7 @@ |
|
|
select a.site,a.code_no,a.picture_addess,a.customerPictureChangeRemark,a.productionFileComments, |
|
|
select a.site,a.code_no,a.picture_addess,a.customerPictureChangeRemark,a.productionFileComments, |
|
|
b.customer_id finalCustomerNo,dbo.plm_get_customer_desc(a.site,b.customer_id) finalCustomerDesc, |
|
|
b.customer_id finalCustomerNo,dbo.plm_get_customer_desc(a.site,b.customer_id) finalCustomerDesc, |
|
|
a.test_part_no as part_no,c.part_desc,c.material_number,c.part_type as part_family,b.customer_remark, |
|
|
a.test_part_no as part_no,c.part_desc,c.material_number,c.part_type as part_family,b.customer_remark, |
|
|
b.remark projectRemark,a.remark |
|
|
|
|
|
|
|
|
b.remark projectRemark,a.remark,a.ori_code_no |
|
|
from plm_technical_specification_sheet a |
|
|
from plm_technical_specification_sheet a |
|
|
left join plm_project_info b on a.site=b.site and a.project_id=b.project_id |
|
|
left join plm_project_info b on a.site=b.site and a.project_id=b.project_id |
|
|
left join plm_project_part c on a.site=c.site and a.test_part_no=c.test_part_no |
|
|
left join plm_project_part c on a.site=c.site and a.test_part_no=c.test_part_no |
|
|
@ -720,4 +721,5 @@ id |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |