|
|
@ -436,14 +436,20 @@ |
|
|
left join plm_project_info ppi on vpp.site = ppi.site and vpp.project_id = ppi.project_id |
|
|
left join plm_project_info ppi on vpp.site = ppi.site and vpp.project_id = ppi.project_id |
|
|
left join plm_customer_part_info pcpi on vpp.site = pcpi.site and ppi.customer_id = pcpi.customer_no and vpp.test_part_no = pcpi.part_no |
|
|
left join plm_customer_part_info pcpi on vpp.site = pcpi.site and ppi.customer_id = pcpi.customer_no and vpp.test_part_no = pcpi.part_no |
|
|
where vpp.site = #{site} |
|
|
where vpp.site = #{site} |
|
|
|
|
|
<if test="projectId != null and projectId != ''"> |
|
|
|
|
|
and vpp.project_id = #{projectId} |
|
|
|
|
|
</if> |
|
|
<if test="testPartNo != null and testPartNo != ''"> |
|
|
<if test="testPartNo != null and testPartNo != ''"> |
|
|
and vpp.test_part_no like #{testPartNo} |
|
|
and vpp.test_part_no like #{testPartNo} |
|
|
</if> |
|
|
</if> |
|
|
<if test="partDesc != null and partDesc != ''"> |
|
|
<if test="partDesc != null and partDesc != ''"> |
|
|
and vpp.part_desc like #{partDesc} |
|
|
and vpp.part_desc like #{partDesc} |
|
|
</if> |
|
|
</if> |
|
|
<if test="projectId != null and projectId != ''"> |
|
|
|
|
|
and vpp.project_id = #{projectId} |
|
|
|
|
|
|
|
|
<if test="finalPartNo != null and finalPartNo != ''"> |
|
|
|
|
|
and vpp.final_part_no like #{finalPartNo} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="customerPartNo != null and customerPartNo != ''"> |
|
|
|
|
|
and pcpi.customer_part_no like #{customerPartNo} |
|
|
</if> |
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
<select id="getProjectPart" resultType="com.spring.modules.project.data.PlmProjectPartData"> |
|
|
<select id="getProjectPart" resultType="com.spring.modules.project.data.PlmProjectPartData"> |
|
|
|