From ef7ecbd0db8da066e1da246b3223ac6b8837df60 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Mon, 28 Oct 2024 15:39:07 +0800 Subject: [PATCH] 1 --- src/super/implement/user_open_permission_implement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/super/implement/user_open_permission_implement.go b/src/super/implement/user_open_permission_implement.go index b045dbe..d0bf4ee 100644 --- a/src/super/implement/user_open_permission_implement.go +++ b/src/super/implement/user_open_permission_implement.go @@ -15,7 +15,7 @@ type UserOpenPermissionDb struct { func (u UserOpenPermissionDb) GetUserOpenPermission(masterId int) (list []*dao.GetUserOpenPermissionResp, total int64, err error) { total, err = u.Db.Where("user_open_permission.master_id =?", masterId). - Join("LEFT", "permission", "user_open_permission.permission_id = permission.id"). + Join("LEFT", "open_permission", "user_open_permission.permission_id = open_permission.id"). FindAndCount(&list) return }