|
|
|
@ -26,7 +26,18 @@ |
|
|
|
dbo.plm_Get_contactPhoneNumber(site, customer_no, 'Y') as contactPhoneNumber1, |
|
|
|
dbo.plm_Get_addressName(site, customer_no, 'Y') as addressName |
|
|
|
FROM plm_customer_information |
|
|
|
WHERE site = #{query.site} |
|
|
|
<where> |
|
|
|
site = #{query.site} |
|
|
|
<if test = "query.customerNo != null and query.customerNo != ''"> |
|
|
|
AND customer_no like #{query.customerNo} |
|
|
|
</if> |
|
|
|
<if test = "query.customerDesc != null and query.customerDesc != ''"> |
|
|
|
AND customer_desc like #{query.customerDesc} |
|
|
|
</if> |
|
|
|
<if test = "query.customerStatus != null and query.customerStatus != ''"> |
|
|
|
AND customer_status = #{query.customerStatus} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |