|
|
|
@ -405,13 +405,12 @@ |
|
|
|
b.project_no, |
|
|
|
b.project_desc, |
|
|
|
b.bu_no, |
|
|
|
b.customer_no, |
|
|
|
b.c_project_region, |
|
|
|
c.customer_desc, |
|
|
|
d.bu_desc |
|
|
|
FROM plm_project_part as a |
|
|
|
LEFT JOIN plm_project_info as b ON a.project_id = b.id |
|
|
|
LEFT JOIN plm_customer_information as c ON b.customer_no = c.customer_no and b.site = c.site |
|
|
|
LEFT JOIN plm_customer_information as c ON a.customer_no = c.customer_no and a.site = c.site |
|
|
|
left join CKT_MES_II_REAL.dbo.BU as d on b.site = d.site and b.bu_no = d.bu_no |
|
|
|
<where> |
|
|
|
<if test="query.projectId != null and query.projectId != ''"> |
|
|
|
@ -444,7 +443,7 @@ |
|
|
|
and a.part_desc like #{query.partDesc} |
|
|
|
</if> |
|
|
|
<if test="query.customerNo != null and query.customerNo != ''"> |
|
|
|
and b.customer_no = like #{query.customerNo} |
|
|
|
and a.customer_no = like #{query.customerNo} |
|
|
|
</if> |
|
|
|
<if test="query.customerDesc != null and query.customerDesc != ''"> |
|
|
|
and c.customer_desc = like #{query.customerDesc} |
|
|
|
@ -495,13 +494,13 @@ |
|
|
|
b.project_no, |
|
|
|
b.project_desc, |
|
|
|
b.bu_no, |
|
|
|
b.customer_no, |
|
|
|
a.customer_no, |
|
|
|
b.c_project_region, |
|
|
|
c.customer_desc, |
|
|
|
d.bu_desc |
|
|
|
FROM plm_project_part as a |
|
|
|
LEFT JOIN plm_project_info as b ON a.project_id = b.id |
|
|
|
LEFT JOIN plm_customer_information as c ON b.customer_no = c.customer_no and b.site = c.site |
|
|
|
LEFT JOIN plm_customer_information as c ON a.customer_no = c.customer_no and b.site = c.site |
|
|
|
left join CKT_MES_II_REAL.dbo.BU as d on b.site = d.site and b.bu_no = d.bu_no |
|
|
|
<where> |
|
|
|
1=1 |
|
|
|
@ -604,7 +603,8 @@ |
|
|
|
part_type, |
|
|
|
priority, |
|
|
|
project_category, |
|
|
|
need_date |
|
|
|
need_date, |
|
|
|
customer_no |
|
|
|
) VALUES ( |
|
|
|
#{site}, |
|
|
|
#{projectId}, |
|
|
|
@ -629,7 +629,8 @@ |
|
|
|
#{partType}, |
|
|
|
#{priority}, |
|
|
|
#{projectCategory}, |
|
|
|
#{needDate} |
|
|
|
#{needDate}, |
|
|
|
#{customerNo} |
|
|
|
); |
|
|
|
</insert> |
|
|
|
<insert id="addConfirmatory"> |
|
|
|
@ -641,7 +642,7 @@ |
|
|
|
<update id="eamProjectPartInfoEdit"> |
|
|
|
UPDATE plm_project_part |
|
|
|
SET test_part_no = #{testPartNo},part_desc = #{partDesc},update_date = GETDATE(),update_by = #{updateBy}, build_date = #{buildDate}, priority = #{priority}, project_category = #{projectCategory}, need_date = #{needDate}, project_manager = #{projectManager}, project_owner = #{projectOwner}, engineer = #{engineer}, c_quality_engineer1 = #{cQualityEngineer1}, c_quality_engineer2 = #{cQualityEngineer2}, c_quality_engineer3 = #{cQualityEngineer3}, c_quality_engineer4 = #{cQualityEngineer4}, c_quality_engineer5 = #{cQualityEngineer5}, c_quality_engineer6 = #{cQualityEngineer6}, c_manufacture_engineer = #{cManufactureEngineer},doc_engineer = #{docEngineer}, |
|
|
|
status = CASE WHEN #{status} IS NOT NULL THEN #{status} ELSE status END, |
|
|
|
status = CASE WHEN #{status} IS NOT NULL THEN #{status} ELSE status END,customer_no = #{customerNo}, |
|
|
|
part_type = CASE WHEN #{partType} IS NOT NULL THEN #{partType} ELSE part_type END, |
|
|
|
close_date = (CASE |
|
|
|
WHEN #{closeDate} IS NULL THEN ISNULL(close_date, NULL) |
|
|
|
|