From d4a164c1fa9c87efd4b23b009b249a7a085dfd27 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 20 Apr 2024 18:16:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=A9=98=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/canal_user_relate_consume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consume/canal_user_relate_consume.go b/consume/canal_user_relate_consume.go index 0e6e8f5..b3febc9 100644 --- a/consume/canal_user_relate_consume.go +++ b/consume/canal_user_relate_consume.go @@ -85,7 +85,7 @@ func handleCancalUserRelateConsume(msg []byte) error { } else { data1.TeamCount++ } - engine.Where("id=?", data1).AllCols().Update(&data1) + engine.Where("id=?", data1.Id).AllCols().Update(&data1) } return nil