rushfee/resource/db/account_sql.xml

32 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqls SYSTEM "sql_definition.dtd">
<sqls>
<sql group="account">
<i id="getList"><![CDATA[
SELECT
a.CUSTOMER_ID,
a.CUST_NAME,
a.MOBILE,
a.END_DATE,
a.INVOICE_ADDR,
a.LEGAL_PERSON,
d.REVENUENAME,
c.ORG_SHORT_NAME,
g.OPERATE_DATE,
b.TASK_ID,
b.id,
b.DETAIL_ID,
b.TASK_USER_ID,
b.USER_ID,
b.AGREE_VISIT_DATE
from CUSTOMER_INFO a
LEFT JOIN RUSH_TASK_CENTER b ON a.CUSTOMER_ID = b.CUSTOMER_ID
LEFT JOIN COMPANY_ORGANIZE c on a.ORG_ID=c.ORG_ID
LEFT JOIN revenue_info_formal d on a.SUBSTATION_ID = d.revenueid
LEFT JOIN (select * from RUSH_RECORD f left join RUSH_LOG e on e.OBJ_ID=f.ID where e.ACTION='rushfee') g
on a.CUSTOMER_ID=g.CUSTOMER_ID
]]></i>
</sql>
</sqls>