...
|
...
|
@@ -218,10 +218,11 @@ func (roleService *RoleService) GetRoleRelatedUsers(getRoleRelatedUsersQuery *qu |
|
|
}
|
|
|
queryOptions := make(map[string]interface{})
|
|
|
queryOptions["companyId"] = role.CompanyId
|
|
|
queryOptions["organizationId"] = getRoleRelatedUsersQuery.OperateInfo.GetOrgId(getRoleRelatedUsersQuery.OrgId)
|
|
|
queryOptions["organizationId"] = getRoleRelatedUsersQuery.OrgId
|
|
|
if getRoleRelatedUsersQuery.DepartmentId > 0 {
|
|
|
queryOptions["departmentId"] = getRoleRelatedUsersQuery.DepartmentId
|
|
|
}
|
|
|
queryOptions["userType"] = domain.UserTypeEmployee
|
|
|
_, users, err := userRepository.Find(queryOptions)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
|