修复报表分享记录分页总计数bug

This commit is contained in:
Harryxzy 2024-06-28 17:22:34 +08:00
parent 458f10d09b
commit db93c2b8a8
1 changed files with 2 additions and 2 deletions

View File

@ -654,7 +654,7 @@ public class SalaryStatisticsPushServiceImpl extends Service implements SalarySt
} else {
salaryStatisticsPushPOS = getSalaryStatisticsPushMapper().listSome(SalaryStatisticsPushPO.builder().build());
}
int total = salaryStatisticsPushPOS.size();
salaryStatisticsPushPOS = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), salaryStatisticsPushPOS);
PageInfo<SalaryStatisticsPushTableDTO> dtoPageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), SalaryStatisticsPushTableDTO.class);
if (CollectionUtils.isNotEmpty(salaryStatisticsPushPOS)) {
@ -684,7 +684,7 @@ public class SalaryStatisticsPushServiceImpl extends Service implements SalarySt
.build();
}).collect(Collectors.toList());
dtoPageInfo.setList(dtoList);
dtoPageInfo.setTotal(dtoList.size());
dtoPageInfo.setTotal(total);
}
return dtoPageInfo;
}