修复报表分享记录分页总计数bug
This commit is contained in:
parent
458f10d09b
commit
db93c2b8a8
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue