diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportDeliverServiceImpl.java b/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportDeliverServiceImpl.java index 4526a1dff..b78b70d9d 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportDeliverServiceImpl.java +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportDeliverServiceImpl.java @@ -179,11 +179,10 @@ public class ReportDeliverServiceImpl implements ReportDeliverService { double div = NumberUtil.div(zeroTotal, size.doubleValue()); long zeroCurrent = (int) Math.ceil(div) + 1; int zeroSize = zeroTotal % size; - page.setCurrent(zeroCurrent); - page.setSize(zeroSize); - List zeroPage = reportDeliverMapeer.getDetailsZeroPage(page, queryWrapper); - page.setCurrent(current); - page.setSize(size); + IPage page1 = Condition.getPage(query); + page1.setCurrent(zeroCurrent); + page1.setSize(zeroSize); + List zeroPage = reportDeliverMapeer.getDetailsZeroPage(page1, queryWrapper); detailsPage.addAll(zeroPage); } page.setTotal(allTotal);