Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway into dev
正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
@@ -50,7 +50,7 @@ func (dto *DepartmentUsersDto) LoadDto(dataType int, subDepartment *allied_creat | @@ -50,7 +50,7 @@ func (dto *DepartmentUsersDto) LoadDto(dataType int, subDepartment *allied_creat | ||
50 | DepartmentName: "共创部门", | 50 | DepartmentName: "共创部门", |
51 | Users: make([]User, 0), | 51 | Users: make([]User, 0), |
52 | } | 52 | } |
53 | - | 53 | + dto.Departments = append(dto.Departments, mapDepartment[-1]) |
54 | for i := range subDepartment.Orgs { | 54 | for i := range subDepartment.Orgs { |
55 | org := subDepartment.Orgs[i] | 55 | org := subDepartment.Orgs[i] |
56 | dep := &Department{ | 56 | dep := &Department{ |
@@ -70,6 +70,7 @@ func (rolesService *RolesService) RoleGet(roleGetQuery *query.RoleGetQuery) (int | @@ -70,6 +70,7 @@ func (rolesService *RolesService) RoleGet(roleGetQuery *query.RoleGetQuery) (int | ||
70 | } | 70 | } |
71 | relatedUser, err := creationUserGateway.RoleGetRelatedUser(allied_creation_user.ReqRoleGetRelatedUser{ | 71 | relatedUser, err := creationUserGateway.RoleGetRelatedUser(allied_creation_user.ReqRoleGetRelatedUser{ |
72 | RoleId: int64(roleId), | 72 | RoleId: int64(roleId), |
73 | + OrgId: roleGetQuery.Operator.OrgId, | ||
73 | }) | 74 | }) |
74 | if err != nil { | 75 | if err != nil { |
75 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 76 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
-
请 注册 或 登录 后发表评论