38 lines
1.2 KiB
XML
38 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE sqls SYSTEM "sql_definition.dtd">
|
|
<sqls>
|
|
<sql group="hwphone">
|
|
<i id="getAccountList">
|
|
select y.id,y.agent_id,y.phone_no,y.user_id,z.cname as user_name
|
|
from rush_user_agent_huawei y
|
|
LEFT JOIN AOS_RMS_USER z ON y.USER_ID = z.CGUID
|
|
where $like(z.cname,username)
|
|
and $like(y.agent_id,agentId)
|
|
and $like(y.phone_no,phoneNo)
|
|
</i>
|
|
<i id="addAccount">
|
|
insert into rush_user_agent_huawei
|
|
(id,user_id,agent_id,phone_no)
|
|
values
|
|
({id},{userId},{agentId},{phoneNo})
|
|
</i>
|
|
<i id="delAccount">
|
|
delete from rush_user_agent_huawei
|
|
where id = {id}
|
|
</i>
|
|
<i id="editAccount">
|
|
update rush_user_agent_huawei
|
|
set agent_id = {agentId},
|
|
phone_no = {phoneNo}
|
|
where id = {id}
|
|
</i>
|
|
|
|
<i id="getAccountName">
|
|
select y.user_id,z.cname as user_name
|
|
from rush_user_agent_huawei y
|
|
LEFT JOIN AOS_RMS_USER z ON y.USER_ID = z.CGUID
|
|
where y.user_id !='1'
|
|
</i>
|
|
</sql>
|
|
</sqls>
|