Browse Source

项目物料里加个查询,不然一个项目下物料太多,一个个找太费劲了

master
han\hanst 1 month ago
parent
commit
9bac9cdc21
  1. 12
      src/main/resources/mapper/project/ProjectDao.xml

12
src/main/resources/mapper/project/ProjectDao.xml

@ -389,6 +389,18 @@
left join plm_project_info as c on a.site = c.site and a.project_id = c.project_id 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 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 = #{query.site} and a.project_id = #{query.projectId} where a.site = #{query.site} and a.project_id = #{query.projectId}
<if test="query.plmPartNo != null and query.plmPartNo != ''">
and b.plm_part_no like '%' + #{query.plmPartNo} + '%'
</if>
<if test="query.finalPartNo != null and query.finalPartNo != ''">
and a.final_part_no like '%' + #{query.finalPartNo} + '%'
</if>
<if test="query.customerPartNo != null and query.customerPartNo != ''">
and d.customer_part_no like '%' + #{query.customerPartNo} + '%'
</if>
<if test="query.partDesc != null and query.partDesc != ''">
and b.part_desc like '%' + #{query.partDesc} + '%'
</if>
</select> </select>
<select id="checkProjectInfoPartList" resultType="PlmProjectPartData"> <select id="checkProjectInfoPartList" resultType="PlmProjectPartData">

Loading…
Cancel
Save