|
|
|
@ -2699,113 +2699,113 @@ |
|
|
|
d.site = #{ site } |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryTechnicalSpecificationCountByAnyField" resultType="java.lang.Long"> |
|
|
|
SELECT count(1) |
|
|
|
FROM plm_technical_specification_sheet a |
|
|
|
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_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 a.step_id = d.step_id |
|
|
|
left join plm_customer_part_info pcpi |
|
|
|
on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no |
|
|
|
<if test="cutterNumber != null and cutterNumber != ''"> |
|
|
|
inner join plm_bm_prepress pbp on pbp.Site = a.site and pbp.code_no = a.code_no and |
|
|
|
(plateNo like #{cutterNumber} or |
|
|
|
cutterNumber like #{cutterNumber}) |
|
|
|
</if> |
|
|
|
<if test="whereClause != null and whereClause != ''"> |
|
|
|
WHERE ${whereClause} |
|
|
|
</if> |
|
|
|
<if test="orderClause != null and orderClause != ''"> |
|
|
|
ORDER BY ${orderClause} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<!-- <select id="queryTechnicalSpecificationCountByAnyField" resultType="java.lang.Long">--> |
|
|
|
<!-- SELECT count(1)--> |
|
|
|
<!-- FROM plm_technical_specification_sheet a--> |
|
|
|
<!-- 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_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 a.step_id = d.step_id--> |
|
|
|
<!-- left join plm_customer_part_info pcpi--> |
|
|
|
<!-- on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no--> |
|
|
|
<!-- <if test="cutterNumber != null and cutterNumber != ''">--> |
|
|
|
<!-- inner join plm_bm_prepress pbp on pbp.Site = a.site and pbp.code_no = a.code_no and--> |
|
|
|
<!-- (plateNo like #{cutterNumber} or--> |
|
|
|
<!-- cutterNumber like #{cutterNumber})--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- <if test="whereClause != null and whereClause != ''">--> |
|
|
|
<!-- WHERE ${whereClause}--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- <if test="orderClause != null and orderClause != ''">--> |
|
|
|
<!-- ORDER BY ${orderClause}--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- </select>--> |
|
|
|
|
|
|
|
<select id="technicalSpecificationListByAnyField" |
|
|
|
resultType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData"> |
|
|
|
SELECT |
|
|
|
a.id, |
|
|
|
a.site, |
|
|
|
a.code_no as codeNo, |
|
|
|
a.project_id as projectId, |
|
|
|
a.test_part_no as testPartNo, |
|
|
|
a.status, |
|
|
|
a.rev_no as revNo, |
|
|
|
a.work_center_no as workCenterNo, |
|
|
|
a.ECN_flag as ecnFlag, |
|
|
|
a.ECN_no as ecnNo, |
|
|
|
a.ori_code_no as oriCodeNo, |
|
|
|
a.ECN_address as ecnAddress, |
|
|
|
a.remark, |
|
|
|
a.create_date as createDate, |
|
|
|
a.create_by as createBy, |
|
|
|
a.update_date as updateDate, |
|
|
|
a.update_by as updateBy, |
|
|
|
b.final_part_no as finalPartNo, |
|
|
|
b.part_type as partTypeDesc, |
|
|
|
b.part_type as partType, |
|
|
|
b.part_name as partName, |
|
|
|
b.part_desc as partDesc, |
|
|
|
b.part_spec as partSpec, |
|
|
|
dbo.plm_get_technicalBaseDesc(a.status, 'status') as statusDesc, |
|
|
|
a.proofing_no as proofingNo, |
|
|
|
b.bu_no as buNo, |
|
|
|
dbo.plm_get_bu_desc(a.site, b.bu_no) as buDesc, |
|
|
|
process, |
|
|
|
c.customer_Id as customerId, |
|
|
|
a.picture_addess as pictureAddess, |
|
|
|
a.customerPictureChangeRemark, |
|
|
|
a.productionFileComments, |
|
|
|
a.bom_type as bomType, |
|
|
|
a.eng_chg_level as engChgLevel, |
|
|
|
a.bom_alternative_no as bomAlternativeNo, |
|
|
|
a.routing_type as routingType, |
|
|
|
a.routing_revision as routingRevision, |
|
|
|
a.routing_alternative_no as routingAlternativeNo, |
|
|
|
a.pod, |
|
|
|
dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'cs') csOperater, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site, a.code_no, 'cs') csOperaterName, |
|
|
|
dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'engineer') engineerNo, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site, a.code_no, 'engineer') engineer, |
|
|
|
dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'technician') technicianNo, |
|
|
|
dbo.get_technicalSpecificationTeamName(a.site, a.code_no, 'technician') technician, |
|
|
|
dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'mp') mpOperator, |
|
|
|
dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'mp') mpOperatorName, |
|
|
|
dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'dcc') dccOperaterName, |
|
|
|
dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'cqc') cqcOperatorName, |
|
|
|
dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'fai') faiOperatorName, |
|
|
|
d.is_reject as isReject, |
|
|
|
d.node_id as nodeId, |
|
|
|
d.node_name as nodeName, |
|
|
|
pcpi.customer_part_no as customerPartNo, |
|
|
|
dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) as sp, |
|
|
|
a.remarkPage, |
|
|
|
a.rev, |
|
|
|
a.customer_rev as customerRev, |
|
|
|
b.plm_part_no as plmPartNo, |
|
|
|
c.project_name as projectName, |
|
|
|
a.document_source as documentSource |
|
|
|
FROM plm_technical_specification_sheet a |
|
|
|
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_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 a.step_id = d.step_id |
|
|
|
left join plm_customer_part_info pcpi |
|
|
|
on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no |
|
|
|
<if test="cutterNumber != null and cutterNumber != ''"> |
|
|
|
inner join plm_bm_prepress pbp on pbp.Site = a.site and pbp.code_no = a.code_no and |
|
|
|
(plateNo like #{cutterNumber} or |
|
|
|
cutterNumber like #{cutterNumber}) |
|
|
|
</if> |
|
|
|
<if test="whereClause != null and whereClause != ''"> |
|
|
|
WHERE ${whereClause} |
|
|
|
</if> |
|
|
|
<if test="orderClause != null and orderClause != ''"> |
|
|
|
ORDER BY ${orderClause} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<!-- <select id="technicalSpecificationListByAnyField"--> |
|
|
|
<!-- resultType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">--> |
|
|
|
<!-- SELECT--> |
|
|
|
<!-- a.id,--> |
|
|
|
<!-- a.site,--> |
|
|
|
<!-- a.code_no as codeNo,--> |
|
|
|
<!-- a.project_id as projectId,--> |
|
|
|
<!-- a.test_part_no as testPartNo,--> |
|
|
|
<!-- a.status,--> |
|
|
|
<!-- a.rev_no as revNo,--> |
|
|
|
<!-- a.work_center_no as workCenterNo,--> |
|
|
|
<!-- a.ECN_flag as ecnFlag,--> |
|
|
|
<!-- a.ECN_no as ecnNo,--> |
|
|
|
<!-- a.ori_code_no as oriCodeNo,--> |
|
|
|
<!-- a.ECN_address as ecnAddress,--> |
|
|
|
<!-- a.remark,--> |
|
|
|
<!-- a.create_date as createDate,--> |
|
|
|
<!-- a.create_by as createBy,--> |
|
|
|
<!-- a.update_date as updateDate,--> |
|
|
|
<!-- a.update_by as updateBy,--> |
|
|
|
<!-- b.final_part_no as finalPartNo,--> |
|
|
|
<!-- b.part_type as partTypeDesc,--> |
|
|
|
<!-- b.part_type as partType,--> |
|
|
|
<!-- b.part_name as partName,--> |
|
|
|
<!-- b.part_desc as partDesc,--> |
|
|
|
<!-- b.part_spec as partSpec,--> |
|
|
|
<!-- dbo.plm_get_technicalBaseDesc(a.status, 'status') as statusDesc,--> |
|
|
|
<!-- a.proofing_no as proofingNo,--> |
|
|
|
<!-- b.bu_no as buNo,--> |
|
|
|
<!-- dbo.plm_get_bu_desc(a.site, b.bu_no) as buDesc,--> |
|
|
|
<!-- process,--> |
|
|
|
<!-- c.customer_Id as customerId,--> |
|
|
|
<!-- a.picture_addess as pictureAddess,--> |
|
|
|
<!-- a.customerPictureChangeRemark,--> |
|
|
|
<!-- a.productionFileComments,--> |
|
|
|
<!-- a.bom_type as bomType,--> |
|
|
|
<!-- a.eng_chg_level as engChgLevel,--> |
|
|
|
<!-- a.bom_alternative_no as bomAlternativeNo,--> |
|
|
|
<!-- a.routing_type as routingType,--> |
|
|
|
<!-- a.routing_revision as routingRevision,--> |
|
|
|
<!-- a.routing_alternative_no as routingAlternativeNo,--> |
|
|
|
<!-- a.pod,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'cs') csOperater,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamName(a.site, a.code_no, 'cs') csOperaterName,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'engineer') engineerNo,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamName(a.site, a.code_no, 'engineer') engineer,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'technician') technicianNo,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamName(a.site, a.code_no, 'technician') technician,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNo(a.site, a.code_no, 'mp') mpOperator,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'mp') mpOperatorName,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'dcc') dccOperaterName,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'cqc') cqcOperatorName,--> |
|
|
|
<!-- dbo.get_technicalSpecificationTeamNames(a.site, a.code_no, 'fai') faiOperatorName,--> |
|
|
|
<!-- d.is_reject as isReject,--> |
|
|
|
<!-- d.node_id as nodeId,--> |
|
|
|
<!-- d.node_name as nodeName,--> |
|
|
|
<!-- pcpi.customer_part_no as customerPartNo,--> |
|
|
|
<!-- dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) as sp,--> |
|
|
|
<!-- a.remarkPage,--> |
|
|
|
<!-- a.rev,--> |
|
|
|
<!-- a.customer_rev as customerRev,--> |
|
|
|
<!-- b.plm_part_no as plmPartNo,--> |
|
|
|
<!-- c.project_name as projectName,--> |
|
|
|
<!-- a.document_source as documentSource--> |
|
|
|
<!-- FROM plm_technical_specification_sheet a--> |
|
|
|
<!-- 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_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 a.step_id = d.step_id--> |
|
|
|
<!-- left join plm_customer_part_info pcpi--> |
|
|
|
<!-- on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no--> |
|
|
|
<!-- <if test="cutterNumber != null and cutterNumber != ''">--> |
|
|
|
<!-- inner join plm_bm_prepress pbp on pbp.Site = a.site and pbp.code_no = a.code_no and--> |
|
|
|
<!-- (plateNo like #{cutterNumber} or--> |
|
|
|
<!-- cutterNumber like #{cutterNumber})--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- <if test="whereClause != null and whereClause != ''">--> |
|
|
|
<!-- WHERE ${whereClause}--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- <if test="orderClause != null and orderClause != ''">--> |
|
|
|
<!-- ORDER BY ${orderClause}--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- </select>--> |
|
|
|
</mapper> |