From 85518555edff56e5b962ebeabfd873011f4ff864 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Sun, 7 Apr 2024 16:40:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E6=89=BE=E6=B2=A1=E5=85=B3=E8=81=94?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=9A=84=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/运维语句.sql | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/运维语句.sql b/doc/运维语句.sql index c81ee8a..e848d92 100644 --- a/doc/运维语句.sql +++ b/doc/运维语句.sql @@ -22,6 +22,13 @@ SELECT opi.OPI_Code, on opi.opi_sn = tpa.TPA_OPI_SN where opi.DeleteFlag = 0 +// 查找没关联订单的会话 +SELECT * +FROM whatsapp_session +WHERE coli_sn = 0 AND last_received_time IS NOT NULL ## AND opi_sn = 599 +ORDER BY last_received_time DESC + + // 查找未分配顾问的会话 SELECT * FROM whatsapp_session @@ -30,4 +37,4 @@ WHERE opi_sn IS null // 查找 WA 号码不一致 SELECT * FROM whatsapp_session -WHERE opi_sn IS null \ No newline at end of file +WHERE whatsapp_phone_number_bak IS not NULL \ No newline at end of file