From 9d8cff5b3a783764022a9dc706d9b142b309f5f7 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Mon, 25 Sep 2023 16:24:52 +0800 Subject: [PATCH] Update userManager.go --- manager/userManager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/userManager.go b/manager/userManager.go index 464c3ac..85cd610 100644 --- a/manager/userManager.go +++ b/manager/userManager.go @@ -142,7 +142,7 @@ func (m *UserManager) GetLevelUsers(userIds []uint64, wealthLevel int32) map[uin res := make(map[uint64]UserTinyArea) // 从db中读,暂时不缓存(几千个) var users []UserTinyArea - if err := m.MysqlDB.Table("user").Joins("match_wealth_user_score ON match_wealth_user_score.user_id = user.id"). + if err := m.MysqlDB.Table("user").Joins("JOIN match_wealth_user_score ON match_wealth_user_score.user_id = user.id"). Select("user.id,external_id,sex,code,country,avatar"). Where("user.id IN (?)", userIds). Where("match_wealth_user_score.grade > ?", wealthLevel). -- 2.22.0