|
|
|
@ -127,14 +127,29 @@ select * from whatsapp_user
|
|
|
|
|
##where wau_opi_sn in (252, 261,264,265,330,360,376,413,421,453,605,620) ## 国际部
|
|
|
|
|
where wau_opi_sn in (495, 143, 370, 114, 513, 514, 517, 522, 550, 587,354, 414, 599, 606, 639, 648, 654, 662, 674, 676,391, 451, 476, 501, 512, 525, 528, 585, 586, 644) ## GH
|
|
|
|
|
|
|
|
|
|
-- 查找每个服务器在线的 WA 数量
|
|
|
|
|
select connect_name, count(*)
|
|
|
|
|
from whatsapp_individual.connections
|
|
|
|
|
where status IN ('open')
|
|
|
|
|
group by connect_name
|
|
|
|
|
|
|
|
|
|
set SESSION group_concat_max_len=4294967295;
|
|
|
|
|
|
|
|
|
|
-- 查找已经配置 WAI 服务的顾问
|
|
|
|
|
select group_concat(wau_whatsapp separator ''',''') as 'sn_list'
|
|
|
|
|
from sale_system.whatsapp_user
|
|
|
|
|
where wau_wai_server is not null
|
|
|
|
|
|
|
|
|
|
## 查找在线的 WhatsApp
|
|
|
|
|
SELECT group_concat(sesson_id separator ''',''') as 'sesson_list'
|
|
|
|
|
FROM whatsapp_individual.connections
|
|
|
|
|
where status = 'open'
|
|
|
|
|
|
|
|
|
|
-- 查找掉线的顾问
|
|
|
|
|
select group_concat(sesson_id separator ''',''') as 'sesson_list' from whatsapp_individual.connections
|
|
|
|
|
where status IN ('offline')
|
|
|
|
|
and wa_id not in ('8618777396951', '8613557032060','8613317835586')
|
|
|
|
|
|
|
|
|
|
## 查找 GH 没有扫码登录的顾问
|
|
|
|
|
select group_concat(wau_opi_sn separator ',') as 'sn_list'
|
|
|
|
|
from whatsapp_user
|
|
|
|
@ -150,6 +165,7 @@ FROM
|
|
|
|
|
--OPI_SN in (495, 143, 370, 114, 513, 514, 517, 522, 550, 587)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT OPI_RealName + '(' + CAST(OPI_SN AS VARCHAR(100)) + ')',OPI_SN
|
|
|
|
|
FROM
|
|
|
|
|
dbo.OperatorInfo
|
|
|
|
|