Browse Source

2026-03-11

技术参数卡:新增时筛选、字段显示增加"客户名称和项目名称"
master
fengyuan_yang 1 month ago
parent
commit
ed861c777a
  1. 14
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

14
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -2355,17 +2355,29 @@
a.project_id,
c.project_name,
pcpi.customer_part_no,
a.bu_no
a.bu_no,
c.customer_id,
cus.customer_desc
from view_Project_final_Part as a
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 pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no
left join plm_technical_specification_sheet d on a.site = d.site and a.test_part_no = d.test_part_no
left join plm_customer_information as cus on c.site = cus.site and c.customer_id = cus.customer_no
<where>
and d.test_part_no is null
and a.site = #{query.site}
<if test="query.projectId != null and query.projectId != ''">
AND a.project_id like #{query.projectId}
</if>
<if test="query.projectName != null and query.projectName != ''">
AND c.project_name like #{query.projectName}
</if>
<if test="query.customerId != null and query.customerId != ''">
AND c.customer_id like #{query.customerId}
</if>
<if test="query.customerDesc != null and query.customerDesc != ''">
AND cus.customer_desc like #{query.customerDesc}
</if>
<if test="query.finalPartNo != null and query.finalPartNo != ''">
AND a.Final_Part_No like #{query.finalPartNo}
</if>

Loading…
Cancel
Save