|
|
@ -201,12 +201,12 @@ |
|
|
(site, code_no, project_id, test_part_no, status, rev_no, ECN_flag, ECN_no, ECN_address, remark, |
|
|
(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, |
|
|
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, |
|
|
routing_type, routing_revision, routing_alternative_no, stage, materialType, step_id, cqcOperator, |
|
|
faiOperator, peOperater, csOperater, mpOperator, rev, customer_rev, certification) |
|
|
|
|
|
|
|
|
faiOperator, peOperater, csOperater, mpOperator, rev, customer_rev, certification, document_source) |
|
|
values |
|
|
values |
|
|
(#{site}, #{codeNo}, #{projectId}, #{testPartNo}, #{status}, #{revNo}, #{ecnFlag}, #{ecnNo}, #{ecnAddress}, #{remark}, |
|
|
(#{site}, #{codeNo}, #{projectId}, #{testPartNo}, #{status}, #{revNo}, #{ecnFlag}, #{ecnNo}, #{ecnAddress}, #{remark}, |
|
|
GetDate(), #{createBy}, #{proofingNo}, #{oriCodeNo}, #{bomType}, #{engChgLevel,jdbcType=INTEGER}, #{bomAlternativeNo}, |
|
|
GetDate(), #{createBy}, #{proofingNo}, #{oriCodeNo}, #{bomType}, #{engChgLevel,jdbcType=INTEGER}, #{bomAlternativeNo}, |
|
|
#{routingType}, #{routingRevision,jdbcType=INTEGER}, #{routingAlternativeNo}, 'Sample', 'Label', 10, #{cqcOperator}, |
|
|
#{routingType}, #{routingRevision,jdbcType=INTEGER}, #{routingAlternativeNo}, 'Sample', 'Label', 10, #{cqcOperator}, |
|
|
#{faiOperator}, #{peOperater}, #{csOperater}, #{mpOperator}, #{rev}, #{customerRev}, 'RoHs') |
|
|
|
|
|
|
|
|
#{faiOperator}, #{peOperater}, #{csOperater}, #{mpOperator}, #{rev}, #{customerRev}, 'RoHs', '新增') |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
<update id="updateProjectPartNowBm"> |
|
|
<update id="updateProjectPartNowBm"> |
|
|
@ -2552,6 +2552,9 @@ |
|
|
<if test="buNo != null and buNo != ''"> |
|
|
<if test="buNo != null and buNo != ''"> |
|
|
AND b.bu_no like #{buNo} |
|
|
AND b.bu_no like #{buNo} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="documentSource != null and documentSource != ''"> |
|
|
|
|
|
AND a.document_source = #{documentSource} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
@ -2695,4 +2698,114 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
d.site = #{ site } |
|
|
d.site = #{ site } |
|
|
</select> |
|
|
</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> |
|
|
</mapper> |
|
|
</mapper> |