rq 1 year ago
parent
commit
418223f88c
  1. 20
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

20
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -4,7 +4,7 @@
<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,a.ori_code_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,b.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,b.bu_no,dbo.plm_get_bu_desc(a.site,b.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,b.bu_no,dbo.plm_get_bu_desc(a.site,b.bu_no) buDesc,
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,process, dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician,process,
@ -19,7 +19,7 @@
,a.dccOperater,dbo.get_userDisPlay(a.dccOperater) dccOperaterName ,a.dccOperater,dbo.get_userDisPlay(a.dccOperater) dccOperaterName
FROM plm_technical_specification_sheet a 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 view_Project_final_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
<where> <where>
<if test="query.id != null"> <if test="query.id != null">
@ -101,7 +101,7 @@
<select id="tsdBasicInformationSearch" resultType="PlmTechnicalSpecificationSheetData"> <select id="tsdBasicInformationSearch" resultType="PlmTechnicalSpecificationSheetData">
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,b.bu_no, 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,b.bu_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,b.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, 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,dbo.plm_get_dictDataLabel('bm_process',process,a.site) process,remarkPage, dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer,stage,dbo.plm_get_dictDataLabel('bm_process',process,a.site) process,remarkPage,
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id,a.ori_code_no, dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id,a.ori_code_no,
@ -113,7 +113,7 @@
a.mpOperator,dbo.get_userDisPlay(a.mpOperator) mpOperatorName a.mpOperator,dbo.get_userDisPlay(a.mpOperator) mpOperatorName
,dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician ,dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician
FROM plm_technical_specification_sheet a 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 view_Project_final_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
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = '103002' left join plm_request_header as prh on a.site = prh.site and prh.menu_id = '103002'
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and isnull(a.step_id,10)= d.step_id left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and isnull(a.step_id,10)= d.step_id
@ -128,19 +128,19 @@
</update> </update>
<select id="getTestPartChangeData" resultType="PlmProjectPartData"> <select id="getTestPartChangeData" resultType="PlmProjectPartData">
select top 1 * from view_Project_Part where site=#{site} and test_part_no=#{testPartNo}
select top 1 * from view_Project_final_Part where site=#{site} and test_part_no=#{testPartNo}
</select> </select>
<select id="BMBasicInformationSearch" resultType="PlmTechnicalSpecificationSheetData"> <select id="BMBasicInformationSearch" resultType="PlmTechnicalSpecificationSheetData">
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, 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,
a.ECN_address,a.remark,a.create_date,a.create_by,a.update_date,a.update_by,b.final_part_no,b.part_type partTypeDesc,
b.part_type,b.part_name,b.part_desc,b.part_spec,dbo.plm_get_technicalBaseDesc(a.status,'status') statusDesc, b.part_type,b.part_name,b.part_desc,b.part_spec,dbo.plm_get_technicalBaseDesc(a.status,'status') statusDesc,
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.ori_code_no a.proofing_no,a.ori_code_no
FROM plm_technical_specification_sheet a 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 view_Project_final_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
where a.site=#{site} and a.code_no=#{codeNo} where a.site=#{site} and a.code_no=#{codeNo}
</select> </select>
@ -193,7 +193,7 @@
b.remark projectRemark,a.remark,a.ori_code_no,a.materialType b.remark projectRemark,a.remark,a.ori_code_no,a.materialType
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 view_Project_Part c on a.site=c.site and a.test_part_no=c.test_part_no
left join view_Project_final_Part c on a.site=c.site and a.test_part_no=c.test_part_no
where a.site=#{site} and a.code_no =#{codeNo} where a.site=#{site} and a.code_no =#{codeNo}
</select> </select>
@ -843,13 +843,13 @@ id
</select> </select>
<select id="getBMBomDetail" resultType="com.spring.modules.part.entity.BomDetailEntity"> <select id="getBMBomDetail" resultType="com.spring.modules.part.entity.BomDetailEntity">
select a.site,a.bom_type,a.eng_chg_level,a.bom_alternative_no alternativeNo,b.final_part_no partNo select a.site,a.bom_type,a.eng_chg_level,a.bom_alternative_no alternativeNo,b.final_part_no partNo
from plm_technical_specification_sheet a left join view_Project_Part b on a.site=b.site and a.test_part_no=b.test_part_no
from plm_technical_specification_sheet a left join view_Project_final_Part b on a.site=b.site and a.test_part_no=b.test_part_no
where a.site=#{site} and a.code_no=#{codeNo} and a.project_id=b.project_id where a.site=#{site} and a.code_no=#{codeNo} and a.project_id=b.project_id
</select> </select>
<select id="getBMRouteDetail" resultType="com.spring.modules.part.entity.RoutingDetailEntity"> <select id="getBMRouteDetail" resultType="com.spring.modules.part.entity.RoutingDetailEntity">
select a.site,a.routing_type,a.routing_revision, select a.site,a.routing_type,a.routing_revision,
a.routing_alternative_no alternativeNo,b.final_part_no partNo a.routing_alternative_no alternativeNo,b.final_part_no partNo
from plm_technical_specification_sheet a left join view_Project_Part b on a.site=b.site and a.test_part_no=b.test_part_no
from plm_technical_specification_sheet a left join view_Project_final_Part b on a.site=b.site and a.test_part_no=b.test_part_no
where a.site=#{site} and a.code_no=#{codeNo} and a.project_id=b.project_id where a.site=#{site} and a.code_no=#{codeNo} and a.project_id=b.project_id
</select> </select>

Loading…
Cancel
Save