|
|
|
@ -294,7 +294,7 @@ |
|
|
|
LEFT JOIN part as b on a.site = b.site and a.test_part_no = b.part_no |
|
|
|
left join plm_project_info as c on a.site = c.site and a.project_id = c.project_id |
|
|
|
left join plm_customer_part_info as d on c.site = d.site and c.customer_id = d.customer_no and a.test_part_no = d.part_no |
|
|
|
where a.site = #{site} and a.project_id = #{projectId} |
|
|
|
where a.site = #{query.site} and a.project_id = #{query.projectId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="checkProjectInfoPartList" resultType="PlmProjectPartData"> |
|
|
|
@ -593,7 +593,7 @@ update_by,update_date,priority,site,id,project_desc,customer_remark,remark,need_ |
|
|
|
pci.customer_description, |
|
|
|
dbo.plm_get_dictDataLabel('plm_customer_information_important_customer', pci.important_customer, ppi.site) as important_customer |
|
|
|
from plm_project_info ppi |
|
|
|
left join dbo.plm_customer_information pci on ppi.site = pci.site and ppi.customer_id = pci.customer_no |
|
|
|
left join dbo.plm_customer_information pci on ppi.site = pci.site and ppi.customer_id = pci.customer_no |
|
|
|
where ppi.site = #{site} |
|
|
|
and ppi.project_id = #{projectId} |
|
|
|
</select> |
|
|
|
@ -608,7 +608,10 @@ update_by,update_date,priority,site,id,project_desc,customer_remark,remark,need_ |
|
|
|
pci.potential_revenue_of_year, |
|
|
|
pci.customer_status, |
|
|
|
pci.customer_description, |
|
|
|
dbo.plm_get_dictDataLabel('plm_customer_information_important_customer', pci.important_customer, ppi.site) as important_customer |
|
|
|
dbo.plm_get_dictDataLabel('plm_customer_information_important_customer', pci.important_customer, ppi.site) as important_customer, |
|
|
|
pci.customer_industry, |
|
|
|
pci.customer_group, |
|
|
|
pci.customer_type |
|
|
|
from plm_project_info ppi |
|
|
|
left join dbo.plm_customer_information pci on ppi.site = pci.site and ppi.final_customer_id = pci.customer_no |
|
|
|
where ppi.site = #{site} |
|
|
|
|