dengbiao 1 week ago
parent
commit
ef7ecbd0db
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/super/implement/user_open_permission_implement.go

+ 1
- 1
src/super/implement/user_open_permission_implement.go View File

@@ -15,7 +15,7 @@ type UserOpenPermissionDb struct {


func (u UserOpenPermissionDb) GetUserOpenPermission(masterId int) (list []*dao.GetUserOpenPermissionResp, total int64, err error) { func (u UserOpenPermissionDb) GetUserOpenPermission(masterId int) (list []*dao.GetUserOpenPermissionResp, total int64, err error) {
total, err = u.Db.Where("user_open_permission.master_id =?", masterId). 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) FindAndCount(&list)
return return
} }

Loading…
Cancel
Save