|
@@ -60,7 +60,7 @@ namespace GxPress.Service.Implement.AdminVerify
|
|
|
var departments = await _departmentRepository.GetAllAsync(Q.WhereIn(nameof(Entity.Department.Id), departmentUsers.Select(n => n.DepartmentId)));
|
|
|
//获取小组
|
|
|
var group = await _groupRepository.GetAsync(request.SourceId);
|
|
|
- var ids = new List<int> { GroupUserRoleTyeConst.Admin.GetHashCode(), GroupUserRoleTyeConst.SuperAdmin.GetHashCode() };
|
|
|
+ var ids = new List<GroupUserRoleTyeConst> { GroupUserRoleTyeConst.Admin, GroupUserRoleTyeConst.SuperAdmin };
|
|
|
//创建人
|
|
|
var groupUsers = await _groupUserRepository.GetAllAsync(Q.Where(nameof(GroupUser.GroupId), group.Id).WhereIn(nameof(GroupUser.GroupUserRoleId), ids));
|
|
|
foreach (var userId in request.UserIds)
|