|
@@ -125,7 +125,7 @@ public class OrgCloudServiceProvider extends ControllerSupport implements OrgClo
|
|
|
|
|
|
Long parentId = req.getParentId();
|
|
|
|
|
|
- final Long start = null == req.getStart() ? 1 : req.getStart();
|
|
|
+ final long start = null == req.getStart() ? 1 : req.getStart();
|
|
|
|
|
|
Pageable pageable = new PageRequest(0, 100, Sort.Direction.ASC, "id");
|
|
|
|
|
@@ -163,7 +163,9 @@ public class OrgCloudServiceProvider extends ControllerSupport implements OrgClo
|
|
|
}
|
|
|
|
|
|
GetOrgsResp resp = new GetOrgsResp();
|
|
|
- next++;
|
|
|
+ if (next != start) {
|
|
|
+ next++;
|
|
|
+ }
|
|
|
resp.setNext(next);
|
|
|
|
|
|
return null;
|