|
@@ -284,6 +284,14 @@ namespace GxPress.Repository.Implement
|
|
|
groupDetailResult.IsUser = groupUser != null ? groupUser.UserId == request.UserId : false;
|
|
|
groupDetailResult.CreatedDate = groupDetail.CreatedDate;
|
|
|
groupDetailResult.QRCoder = StringUtils.AddDomain(groupDetailResult.QRCoder);
|
|
|
+ if (groupDetailResult.GroupUserListResult != null && groupDetailResult.GroupUserListResult.Count() > 0)
|
|
|
+ {
|
|
|
+ var roleIds = new List<GroupUserRoleTyeConst> { GroupUserRoleTyeConst.Admin, GroupUserRoleTyeConst.SuperAdmin };
|
|
|
+ groupDetailResult.MainMemberListResult = groupDetailResult.GroupUserListResult.Where(n => roleIds.Contains(n.GroupUserRoleId));
|
|
|
+ groupDetailResult.MainMemberCount = groupDetailResult.MainMemberListResult.Count();
|
|
|
+ groupDetailResult.CommonMemberListResult = groupDetailResult.GroupUserListResult.Where(n => !roleIds.Contains(n.GroupUserRoleId));
|
|
|
+ groupDetailResult.CommonMemberCount = groupDetailResult.CommonMemberListResult.Count();
|
|
|
+ }
|
|
|
return groupDetailResult;
|
|
|
}
|
|
|
/// <summary>
|