From f65ce9c19568745003b22e82060fb38c2885c701 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期五, 13 十月 2023 15:36:30 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/crm --- model/contact.go | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/model/contact.go b/model/contact.go index 9961a42..c7ecfea 100644 --- a/model/contact.go +++ b/model/contact.go @@ -93,9 +93,10 @@ db = db.Where("is_first = ?", false) } } - case int: - case int64: - case float64: + case int, uint, int64, float64: + if key == "id" || key == "client_type_id" || key == "client_status_id" || key == "member_id" { + db = db.Where(key+" = ?", v) + } if key == "client_id" { db = db.Where("client_id = ? and is_first = true", v) } -- Gitblit v1.8.0