提交 c0de8847 作者: 恶龙咆哮

修改bug

上级 824b831b
流水线 #7882 已通过 于阶段
in 2 分 8 秒
...@@ -259,6 +259,11 @@ public class PilotCertificationServiceImpl implements PilotCertificationService ...@@ -259,6 +259,11 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
public PageResult backListPilot(PilotCertificationQO param, LoginSuccessDTO userLoginInfoFromRedis) { public PageResult backListPilot(PilotCertificationQO param, LoginSuccessDTO userLoginInfoFromRedis) {
Integer pageNo = param.getPageNo(); Integer pageNo = param.getPageNo();
param.buildCurrentPage(); param.buildCurrentPage();
int pilotListSize = certificationDao.pilotListCount(param);
if(pilotListSize < 1) {
return PageResult.buildPage(param.getPageNo(), param.getPageSize(), pilotListSize, null);
}
List<PilotCertificationDO> pilotList = certificationDao.pilotList(param); List<PilotCertificationDO> pilotList = certificationDao.pilotList(param);
extracted(pilotList); extracted(pilotList);
if (param.getAbilityId() != null) { if (param.getAbilityId() != null) {
...@@ -299,7 +304,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService ...@@ -299,7 +304,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
collects = collects.stream().filter(collect -> backUserId.equals(collect.getBackUserId())).skip((pageNo - 1) * param.getPageSize()).limit(param.getPageSize()). collects = collects.stream().filter(collect -> backUserId.equals(collect.getBackUserId())).skip((pageNo - 1) * param.getPageSize()).limit(param.getPageSize()).
collect(Collectors.toList()); collect(Collectors.toList());
} }
PageResult pageResult = PageResult.buildPage(pageNo, param.getPageSize(), pilotList.size(), collects); PageResult pageResult = PageResult.buildPage(pageNo, param.getPageSize(), pilotListSize, collects);
return pageResult; return pageResult;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论