rushfee/resource/db/rushtel_sql.xml

22 lines
645 B
XML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqls SYSTEM "sql_definition.dtd">
<sqls>
<sql group="rushtel">
<i id="getTelList"><![CDATA[
select t.mobile as mobile from v_CUSTOMER_CONTACT t
where t.customer_id={customer_id}
order by t.is_default desc
]]></i>
<i id="getContactsList"><![CDATA[
select customerid,cust_name, to_char(end_date,'yyyy-mm-dd') as end_date,org_name,cust_tax_code,revenuename
from VIEW_RUSHFEE_LIST l
where l.customerid in (select distinct c.customer_id
from v_CUSTOMER_CONTACT c
where c.mobile = {mobile})
]]></i>
</sql>
</sqls>