|
|
@@ -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 |
|
|
|
} |