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 }