|
|
@ -394,6 +394,50 @@ |
|
|
WHERE id = #{projectId} |
|
|
WHERE id = #{projectId} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 仅当 tracking.id 与 NPI.id 相同(已互通)时回写;未互通记录不受影响。 --> |
|
|
|
|
|
<update id="updateProjectInfoTrackingFromNpi"> |
|
|
|
|
|
UPDATE t |
|
|
|
|
|
SET t.project_no = p.project_no, |
|
|
|
|
|
t.project_category = p.project_category, |
|
|
|
|
|
t.project_name = p.project_name, |
|
|
|
|
|
t.status = p.status, |
|
|
|
|
|
t.project_source = p.project_source, |
|
|
|
|
|
t.customer_no = p.customer_no, |
|
|
|
|
|
t.priority = p.priority, |
|
|
|
|
|
t.site = p.site, |
|
|
|
|
|
t.project_desc = p.project_desc, |
|
|
|
|
|
t.customer_remark = p.customer_remark, |
|
|
|
|
|
t.remark = p.remark, |
|
|
|
|
|
t.need_date = p.need_date, |
|
|
|
|
|
t.bu_no = p.bu_no, |
|
|
|
|
|
t.parent_project_no = p.parent_project_no, |
|
|
|
|
|
t.final_customer_id = p.final_customer_id, |
|
|
|
|
|
t.c_project_region = p.c_project_region, |
|
|
|
|
|
t.project_manager = p.project_manager, |
|
|
|
|
|
t.project_owner = p.project_owner, |
|
|
|
|
|
t.c_project_build_date = p.c_project_build_date, |
|
|
|
|
|
t.c_quality_engineer1 = p.c_quality_engineer1, |
|
|
|
|
|
t.c_quality_engineer2 = p.c_quality_engineer2, |
|
|
|
|
|
t.c_quality_engineer3 = p.c_quality_engineer3, |
|
|
|
|
|
t.c_manufacture_engineer = p.c_manufacture_engineer, |
|
|
|
|
|
t.project_close_date = p.project_close_date, |
|
|
|
|
|
t.project_creation_date = p.project_creation_date, |
|
|
|
|
|
t.engineer = p.engineer, |
|
|
|
|
|
t.ori_project_id = p.ori_project_id, |
|
|
|
|
|
t.doc_engineer = p.doc_engineer, |
|
|
|
|
|
t.c_quality_engineer4 = p.c_quality_engineer4, |
|
|
|
|
|
t.c_quality_engineer5 = p.c_quality_engineer5, |
|
|
|
|
|
t.c_quality_engineer6 = p.c_quality_engineer6, |
|
|
|
|
|
t.ipqc_hard_tag = p.ipqc_hard_tag, |
|
|
|
|
|
t.c_quality_engineer7 = p.c_quality_engineer7, |
|
|
|
|
|
t.doc_engineer2 = p.doc_engineer2, |
|
|
|
|
|
t.update_date = GETDATE(), |
|
|
|
|
|
t.update_by = #{updateBy} |
|
|
|
|
|
FROM plm_project_info_tracking t |
|
|
|
|
|
INNER JOIN plm_project_info p ON p.id = t.id |
|
|
|
|
|
WHERE t.id = #{projectId} |
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
<select id="existsProjectInfoTrackingId" resultType="java.lang.Integer"> |
|
|
<select id="existsProjectInfoTrackingId" resultType="java.lang.Integer"> |
|
|
SELECT TOP 1 id |
|
|
SELECT TOP 1 id |
|
|
FROM plm_project_info_tracking |
|
|
FROM plm_project_info_tracking |
|
|
@ -490,6 +534,55 @@ |
|
|
WHERE id = #{projectPartId} |
|
|
WHERE id = #{projectPartId} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 仅当 tracking.id 与 NPI.id 相同(已互通)时回写;未互通记录不受影响。 --> |
|
|
|
|
|
<update id="updateProjectPartTrackingFromNpi"> |
|
|
|
|
|
UPDATE t |
|
|
|
|
|
SET t.site = p.site, |
|
|
|
|
|
t.project_id = p.project_id, |
|
|
|
|
|
t.test_part_no = p.test_part_no, |
|
|
|
|
|
t.part_type = p.part_type, |
|
|
|
|
|
t.dry_wet_type = p.dry_wet_type, |
|
|
|
|
|
t.part_desc = p.part_desc, |
|
|
|
|
|
t.part_spec = p.part_spec, |
|
|
|
|
|
t.material_number = p.material_number, |
|
|
|
|
|
t.final_part_desc = p.final_part_desc, |
|
|
|
|
|
t.part_name = p.part_name, |
|
|
|
|
|
t.final_part_no = p.final_part_no, |
|
|
|
|
|
t.code_no = p.code_no, |
|
|
|
|
|
t.group_id = p.group_id, |
|
|
|
|
|
t.product_group_id1 = p.product_group_id1, |
|
|
|
|
|
t.product_group_id2 = p.product_group_id2, |
|
|
|
|
|
t.base_no = p.base_no, |
|
|
|
|
|
t.rev_no = p.rev_no, |
|
|
|
|
|
t.project_manager = p.project_manager, |
|
|
|
|
|
t.project_owner = p.project_owner, |
|
|
|
|
|
t.build_date = p.build_date, |
|
|
|
|
|
t.c_quality_engineer1 = p.c_quality_engineer1, |
|
|
|
|
|
t.c_quality_engineer2 = p.c_quality_engineer2, |
|
|
|
|
|
t.c_quality_engineer3 = p.c_quality_engineer3, |
|
|
|
|
|
t.c_manufacture_engineer = p.c_manufacture_engineer, |
|
|
|
|
|
t.close_date = p.close_date, |
|
|
|
|
|
t.engineer = p.engineer, |
|
|
|
|
|
t.status = p.status, |
|
|
|
|
|
t.priority = p.priority, |
|
|
|
|
|
t.project_category = p.project_category, |
|
|
|
|
|
t.need_date = p.need_date, |
|
|
|
|
|
t.doc_engineer = p.doc_engineer, |
|
|
|
|
|
t.c_quality_engineer4 = p.c_quality_engineer4, |
|
|
|
|
|
t.c_quality_engineer5 = p.c_quality_engineer5, |
|
|
|
|
|
t.c_quality_engineer6 = p.c_quality_engineer6, |
|
|
|
|
|
t.customer_no = p.customer_no, |
|
|
|
|
|
t.ipqc_hard_tag = p.ipqc_hard_tag, |
|
|
|
|
|
t.c_quality_engineer7 = p.c_quality_engineer7, |
|
|
|
|
|
t.doc_engineer2 = p.doc_engineer2, |
|
|
|
|
|
t.remark = p.remark, |
|
|
|
|
|
t.update_date = GETDATE(), |
|
|
|
|
|
t.update_by = #{updateBy} |
|
|
|
|
|
FROM plm_project_part_tracking t |
|
|
|
|
|
INNER JOIN plm_project_part p ON p.id = t.id |
|
|
|
|
|
WHERE t.id = #{projectPartId} |
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
<select id="existsProjectPartTrackingId" resultType="java.lang.Integer"> |
|
|
<select id="existsProjectPartTrackingId" resultType="java.lang.Integer"> |
|
|
SELECT TOP 1 id |
|
|
SELECT TOP 1 id |
|
|
FROM plm_project_part_tracking |
|
|
FROM plm_project_part_tracking |
|
|
|