mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
bugfix 宁波平台query_station_status分页错误
This commit is contained in:
@@ -449,19 +449,19 @@ public class ZhongDianLianPlatformServiceImpl implements ThirdPartyPlatformServi
|
||||
StationStatusInfos.add(stationStatusInfo);
|
||||
}
|
||||
// 将 StationStatusInfos 分页
|
||||
int pageNum = 1;
|
||||
int pageSize = 10;
|
||||
List<StationStatusInfo> collect = StationStatusInfos.stream()
|
||||
.skip((pageNum - 1) * pageSize)
|
||||
.limit(pageSize)
|
||||
.collect(Collectors.toList());
|
||||
// int pageNum = 1;
|
||||
// int pageSize = 10;
|
||||
// List<StationStatusInfo> collect = StationStatusInfos.stream()
|
||||
// .skip((pageNum - 1) * pageSize)
|
||||
// .limit(pageSize)
|
||||
// .collect(Collectors.toList());
|
||||
|
||||
int total = StationStatusInfos.size();
|
||||
int pages = PageUtil.totalPage(total, pageSize);
|
||||
// int pages = PageUtil.totalPage(total, pageSize);
|
||||
|
||||
Map<String, Object> map = new LinkedHashMap<>();
|
||||
map.put("Total", total);
|
||||
map.put("StationStatusInfos", collect);
|
||||
map.put("StationStatusInfos", StationStatusInfos);
|
||||
|
||||
return ThirdPartyPlatformUtils.generateResultMap(map, ningBoSecretInfoVO);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user