2022-05-16 15:07:40 +00:00
|
|
|
<?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 ,
|
2022-11-22 06:55:55 +00:00
|
|
|
y.AGENT_ID as account,y.mobile1,y.mobile2
|
2022-05-16 15:07:40 +00:00
|
|
|
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,
|
2022-11-22 06:55:55 +00:00
|
|
|
agent_id,mobile1,mobile2)
|
2022-05-16 15:07:40 +00:00
|
|
|
values
|
|
|
|
(
|
|
|
|
{accountname},
|
2022-11-22 06:55:55 +00:00
|
|
|
{account},{mobile1},{mobile2})
|
2022-05-16 15:07:40 +00:00
|
|
|
|
|
|
|
]]></i>
|
2022-11-22 06:55:55 +00:00
|
|
|
|
|
|
|
<i id="update"><![CDATA[
|
|
|
|
update RUSH_USER_AGENT set mobile1={mobile1},mobile2={mobile2} where USER_ID={accountname}
|
|
|
|
]]></i>
|
|
|
|
|
2022-05-16 15:07:40 +00:00
|
|
|
<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>
|