|
|
@ -75,20 +75,20 @@ |
|
|
|
|
|
|
|
|
<select id="getCustomerInfo" resultType="java.util.Map"> |
|
|
<select id="getCustomerInfo" resultType="java.util.Map"> |
|
|
select DISTINCT vcus.ccusname,vcusp.ccontactname,vcusp.cnative |
|
|
select DISTINCT vcus.ccusname,vcusp.ccontactname,vcusp.cnative |
|
|
from view_custdev_mes_cmc_customer vcus |
|
|
|
|
|
LEFT JOIN view_custdev_mes_cmc_customer_person vcusp on vcus.ccuscode=vcusp.ccuscode |
|
|
|
|
|
|
|
|
from ecss_custdev_mes_cmc_customer vcus |
|
|
|
|
|
LEFT JOIN ecss_custdev_mes_cmc_customer_person vcusp on vcus.ccuscode=vcusp.ccuscode |
|
|
where vcus.ccusname=#{ccusname} |
|
|
where vcus.ccusname=#{ccusname} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getCustomerAdd" resultType="java.util.Map"> |
|
|
<select id="getCustomerAdd" resultType="java.util.Map"> |
|
|
select DISTINCT vcus.ccusname,vcusa.cDeliverAdd,vcusa.cDeliverUnit, vcus.country,vcusa.deliverycountry |
|
|
select DISTINCT vcus.ccusname,vcusa.cDeliverAdd,vcusa.cDeliverUnit, vcus.country,vcusa.deliverycountry |
|
|
from view_custdev_mes_cmc_customer vcus |
|
|
|
|
|
left join view_custdev_mes_cmc_customer_addr vcusa on vcus.ccuscode=vcusa.ccuscode |
|
|
|
|
|
|
|
|
from ecss_custdev_mes_cmc_customer vcus |
|
|
|
|
|
left join ecss_custdev_mes_cmc_customer_addr vcusa on vcus.ccuscode=vcusa.ccuscode |
|
|
where vcus.ccusname=#{ccusname} |
|
|
where vcus.ccusname=#{ccusname} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getCustomerList" resultType="java.util.Map"> |
|
|
<select id="getCustomerList" resultType="java.util.Map"> |
|
|
select * from view_custdev_mes_cmc_customer |
|
|
|
|
|
|
|
|
select * from ecss_custdev_mes_cmc_customer |
|
|
<where> |
|
|
<where> |
|
|
<if test="ccusname != null and ccusname != ''"> |
|
|
<if test="ccusname != null and ccusname != ''"> |
|
|
and ccusname like '%'+#{ccusname}+'%' |
|
|
and ccusname like '%'+#{ccusname}+'%' |
|
|
|