增加查找为分配会话

dev/code-splitting
Jimmy Liow 2 years ago
parent 3eb22f7e1e
commit 5f6fd62418

@ -1,23 +1,19 @@
//
SELECT group_concat(opi_sn separator ',') as 'sn_list' FROM (
SELECT SELECT
opi_sn, count(*) opi_sn,COUNT(*)
FROM FROM whatsapp_session
`whatsapp_session`
where opi_sn is not null and opi_sn not in (29,383,404,227) where opi_sn is not null and opi_sn not in (29,383,404,227)
GROUP by opi_sn GROUP by opi_sn
) session_count
SELECT SELECT
OPI_SN, OPI_SN, OPI_Code,OPI_Name,OPI_DEI_SN,OPI_FirstName,OPI_RealName
OPI_Code,
OPI_Name,
OPI_DEI_SN,
OPI_Role,
OPI_FirstName,
OPI_RealName
FROM FROM
dbo.OperatorInfo dbo.OperatorInfo
where where
--DeleteFlag = 0 and DeleteFlag = 0 and
OPI_SN in (162,31,32,33,34,599,600,353,352,350,351,35,606,495,293,525,114,587,585,519,522,476,354,451,216,143) OPI_SN in (162,31,32,33,34,599,600,353,352,350,351,35,606,495,293,525,114,587,585,519,522,476,354,451,216,143,586,539,370,512)
SELECT opi.OPI_Code, SELECT opi.OPI_Code,
@ -26,3 +22,9 @@ SELECT opi.OPI_Code,
on opi.opi_sn = tpa.TPA_OPI_SN on opi.opi_sn = tpa.TPA_OPI_SN
where opi.DeleteFlag = 0 where opi.DeleteFlag = 0
//
SELECT *
FROM whatsapp_session
WHERE opi_sn IS null
Loading…
Cancel
Save