Commit 5a43aa84 authored by lilongyang's avatar lilongyang

1、获取并网容量接口按照名称升序排序

parent 047108cc
...@@ -201,10 +201,10 @@ public class EnergyAccessServiceImpl implements EnergyAccessService { ...@@ -201,10 +201,10 @@ public class EnergyAccessServiceImpl implements EnergyAccessService {
}); });
pageIPage.setTotal(returnList.size()); pageIPage.setTotal(returnList.size());
int endIndex = newCurrent * newPageSize; int endIndex = newCurrent * newPageSize;
if (returnList.size() > endIndex) { if (finalList.size() > endIndex) {
pageIPage.setRecords(finalList.subList(((newCurrent - 1) * newPageSize), endIndex)); pageIPage.setRecords(finalList.subList(((newCurrent - 1) * newPageSize), endIndex));
} else { } else {
pageIPage.setRecords(finalList.subList(((newCurrent - 1) * newPageSize), returnList.size())); pageIPage.setRecords(finalList.subList(((newCurrent - 1) * newPageSize), finalList.size()));
} }
logger.info("获取片区指标完成情况最终返回结果:{}", pageIPage.getRecords()); logger.info("获取片区指标完成情况最终返回结果:{}", pageIPage.getRecords());
return pageIPage; return pageIPage;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment