|
|
@@ -245,7 +245,7 @@ public class UserManagementService {
|
|
|
|
|
|
private Integer getUserGroupId(List<UserGroupCountDTO> userGroupCountDTOList, long count) {
|
|
|
if (count >= ((long) gzhUserGroupSize * gzhUserGroupPerCount)
|
|
|
- || userGroupCountDTOList.size() > gzhUserGroupSize) {
|
|
|
+ || userGroupCountDTOList.size() != gzhUserGroupSize) {
|
|
|
userGroupCountDTOList.sort(Comparator.comparing(UserGroupCountDTO::getUserGroupId));
|
|
|
UserGroupCountDTO max = userGroupCountDTOList.get(userGroupCountDTOList.size() - 1);
|
|
|
if (max.getCount() < gzhUserGroupPerCount) {
|