|
|
|
@ -116,3 +116,43 @@ WHERE tos = '5534999923993' AND opi_sn = 587;
|
|
|
|
|
* end 会话 合并
|
|
|
|
|
* ---------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
个人 WhatsAPp
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
select * from whatsapp_user
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set SESSION group_concat_max_len=4294967295;
|
|
|
|
|
|
|
|
|
|
## 查找在线的 WhatsApp
|
|
|
|
|
SELECT group_concat(sesson_id separator ''',''') as 'sesson_list'
|
|
|
|
|
FROM whatsapp_individual.connections
|
|
|
|
|
where status = 'open'
|
|
|
|
|
|
|
|
|
|
## 查找 GH 没有扫码登录的顾问
|
|
|
|
|
select group_concat(wau_opi_sn separator ',') as 'sn_list'
|
|
|
|
|
from whatsapp_user
|
|
|
|
|
where wau_whatsapp not in ('8613317835586','8617607732272','8613978392676','8618378304803','8617607730629','8619107833371','8619107835971','8617607731491','8615080129281','8617607737720','8618777396951','8618078444860','8615778462307','8617774702925','8615078398450','8619178340224','8617607731153','8617607735120','8617607737646','8618877388203','8615778493040','8613617733956','8618290167273','8617776515283','8617607736381','8613557032060','8613667839691','8618378388403','8613635132972')
|
|
|
|
|
and 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)
|
|
|
|
|
|
|
|
|
|
-- 查找使用 WhatsApp 顾问信息
|
|
|
|
|
SELECT
|
|
|
|
|
OPI_SN, OPI_Code,OPI_Name,OPI_DEI_SN,OPI_FirstName,OPI_RealName, DeleteFlag
|
|
|
|
|
FROM
|
|
|
|
|
dbo.OperatorInfo WHERE
|
|
|
|
|
OPI_SN in (143,476,528,391)
|
|
|
|
|
--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
|
|
|
|
|
where
|
|
|
|
|
--DeleteFlag = 0 and
|
|
|
|
|
OPI_SN in (79,85,114,119,135,143,155,162,178,210,216,222,225,252,261,264,265,273,293,296,311,330,343,347,348,354,360,370,376,387,391,412,413,414,421,441,444,451,453,456,466,468,476,495,497,501,509,512,513,514,517,519,522,525,527,528,539,550,573,585,586,587,592,599,600,605,606,611,617,620,639,644,648,654,656,659,662,663,674,676,690,691)
|
|
|
|
|
and OPI_RealName in ('兰芬','孙俊垚','王继伟','曾君','潘宏宇','郑美珍','张丽娟','张倩倩','赵泽菲','王影','陆力影','吕燕珍','何秋云','沈慧香')
|