|
@@ -50,8 +50,7 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
}
|
|
|
example.setPage(page);
|
|
|
long total = ghDetailMapper.countByExample(example);
|
|
|
- int totalSize = (int) (total % pageSize == 0 ? (total / pageSize) : (total / pageSize + 1));
|
|
|
- page.setTotalSize(totalSize);
|
|
|
+ page.setTotalSize((int) total);
|
|
|
List<GhDetail> ghDetails = ghDetailMapper.selectByExample(example);
|
|
|
List<GhDetailVo> ghDetailVos = new ArrayList<>();
|
|
|
if (!CollectionUtils.isEmpty(ghDetails)) {
|