mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 03:16:48 +08:00
案例推送组织接收参数修改
This commit is contained in:
@@ -64,7 +64,11 @@ public class ThirdApi {
|
||||
|
||||
|
||||
private void nextPage(UserListParam userListParam, String token, List<UserInfoListVo> userInfoLists, UserInfoListRootBean.ResultData t) {
|
||||
log.info("nextPage 获取用户--" + userListParam.getPageNo());
|
||||
log.info("nextPage 1 获取用户:" + userListParam + ",TotalPage=" + t.getTotalPage());
|
||||
if (t.getTotalPage() == 0){
|
||||
t.setTotalPage((int)Math.ceil(Double.parseDouble(String.valueOf(t.getTotal()))/Double.parseDouble(String.valueOf(userListParam.getPageSize()))));
|
||||
}
|
||||
log.info("nextPage 2 获取用户:" + userListParam + ",TotalPage=" + t.getTotalPage());
|
||||
if (t.getTotalPage() > userListParam.getPageNo()) {
|
||||
REQUEST_TASK.submit(() -> IntStream.range(userListParam.getPageNo(), t.getTotalPage()).parallel().forEach(i -> getAllUserList(userListParam.withPageNo(i + 1), token, userInfoLists))).join();
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ public class UserInfoListRootBean {
|
||||
|
||||
private int totalElement;
|
||||
private int totalPage;
|
||||
private int total;
|
||||
private List<UserInfoListVo> list;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user