114 lines
1.9 KiB
XML
114 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE sqls SYSTEM "sql_definition.dtd">
|
|
<sqls>
|
|
<sql group="telaccount">
|
|
<i id="getList"><![CDATA[
|
|
|
|
SELECT y.USER_ID as id,
|
|
z.CNAME ,
|
|
y.AGENT_ID as account
|
|
FROM
|
|
RUSH_USER_AGENT y
|
|
LEFT JOIN AOS_RMS_USER z ON y.USER_ID = z.CGUID
|
|
where $like(CNAME,CNAME) and $like(agent_id,acc)
|
|
ORDER BY
|
|
y.AGENT_ID
|
|
|
|
|
|
|
|
]]></i>
|
|
|
|
|
|
<i id="geusertList"><![CDATA[
|
|
SELECT
|
|
cguid,cname
|
|
FROM
|
|
AOS_RMS_USER t
|
|
WHERE
|
|
t.ISTATUS='1' and
|
|
t.CUSERTYPE IN (
|
|
SELECT
|
|
cguid
|
|
FROM
|
|
RUSH_AUTH a left join AOS_RMS_USERTYPE_CFG b ON a.NAME = b.CNAME
|
|
WHERE
|
|
a.TYPE = 'rush_sharer_type') MINUS
|
|
SELECT y.USER_ID as CUSERGUID,
|
|
z.CNAME
|
|
FROM
|
|
RUSH_USER_AGENT y
|
|
LEFT JOIN AOS_RMS_USER z ON y.USER_ID = z.CGUID
|
|
]]></i>
|
|
|
|
|
|
|
|
|
|
<i id="getTelAgent"><![CDATA[
|
|
select *
|
|
from RUSH_USER_AGENT t
|
|
where agent_id = {account}
|
|
]]></i>
|
|
|
|
<i id="save"><![CDATA[
|
|
insert into RUSH_USER_AGENT
|
|
(user_id,
|
|
agent_id)
|
|
values
|
|
(
|
|
{accountname},
|
|
{account})
|
|
|
|
]]></i>
|
|
<i id="savetel"><![CDATA[
|
|
insert into RUSH_TEL_ACCOUNT
|
|
(id,
|
|
account,
|
|
creator,
|
|
create_date,
|
|
creator_name)
|
|
values
|
|
(
|
|
{id},
|
|
{account},
|
|
{creator},
|
|
{create_date},
|
|
{creator_name})
|
|
|
|
]]></i>
|
|
|
|
|
|
|
|
|
|
<i id="getTelAccount"><![CDATA[
|
|
select *
|
|
from RUSH_TEL_ACCOUNT t
|
|
where $like(account,account_no)
|
|
order by create_date desc
|
|
]]></i>
|
|
|
|
<i id="saveTelAccount"><![CDATA[
|
|
insert into RUSH_TEL_ACCOUNT
|
|
(id,
|
|
account,
|
|
creator,
|
|
create_date,
|
|
creator_name
|
|
)
|
|
values
|
|
({id},
|
|
{account},
|
|
{creator},
|
|
{create_date},
|
|
{creator_name})
|
|
]]></i>
|
|
|
|
<i id="getTelAccountByAccount"><![CDATA[
|
|
select * from RUSH_TEL_ACCOUNT
|
|
where account = {account}
|
|
]]></i>
|
|
|
|
|
|
|
|
|
|
</sql>
|
|
</sqls> |