|
@@ -267,6 +267,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
|
|
|
|
|
|
List<UserBean> list = Lists.newArrayList();
|
|
|
long next = start;
|
|
|
+ boolean has = false;
|
|
|
while (iterator.hasNext()) {
|
|
|
UserEntity userEntity = iterator.next();
|
|
|
UserBean userBean = new UserBean();
|
|
@@ -279,10 +280,11 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
|
|
|
|
|
|
next = userEntity.getId();
|
|
|
list.add(userBean);
|
|
|
+ has = true;
|
|
|
}
|
|
|
|
|
|
GetAllUsersByRoleResp resp = new GetAllUsersByRoleResp();
|
|
|
- if (next != start) {
|
|
|
+ if (has) {
|
|
|
next++;
|
|
|
}
|
|
|
resp.setNext(next);
|