From 3e53bccbefe6446336f412675064dc6e37aea6c9 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 10 May 2024 09:45:36 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=9A=E8=AF=9D=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/运维语句.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/运维语句.sql b/doc/运维语句.sql index 3a5bb3e..35e8a4f 100644 --- a/doc/运维语句.sql +++ b/doc/运维语句.sql @@ -97,3 +97,22 @@ VALUES ('6282145142470','',162,0,1); * end 新增会话给顾问 * --------------------------------------------------------- */ + +/** + * --------------------------------------------------------- + * 会话 合并 + * 含有特别呼叫代码的 会话, 合并WhatsApp号码 + * 1. 更新目标会话的 coli_sn, coli_id, whatsapp_name + * 2. 更新需合并的源会话的消息记录: tos, coli_sn + */ +UPDATE sale_system.whatsapp_session +SET whatsapp_name='Luiz Ribeiro', coli_sn=1092511, coli_id='L240509014' +WHERE whatsapp_phone_number='553499923993' AND opi_sn = 587; + +UPDATE sale_system.whatsapp_inboundmessage +SET tos='553499923993', coli_sn=1092511 +WHERE tos = '5534999923993' AND opi_sn = 587; +/** + * end 会话 合并 + * --------------------------------------------------------- + */