|
|
|
@ -182,12 +182,19 @@ public class ReportDeliverServiceImpl implements ReportDeliverService {
|
|
|
|
|
int zeroSize = zeroTotal % size; |
|
|
|
|
IPage<ReportDetailVO> page1 = Condition.getPage(query); |
|
|
|
|
page1.setCurrent(zeroCurrent); |
|
|
|
|
long limitA = 0; |
|
|
|
|
long limitB = 0; |
|
|
|
|
if (NumberUtil.equals(zeroCurrent, 1)) { |
|
|
|
|
page1.setSize(zeroSize); |
|
|
|
|
if(zeroSize == 0){ |
|
|
|
|
zeroSize = size; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
page1.setSize(size); |
|
|
|
|
zeroSize = size; |
|
|
|
|
limitA = (zeroCurrent - 1) * zeroSize; |
|
|
|
|
} |
|
|
|
|
List<ReportDetailVO> zeroPage = reportDeliverMapeer.getDetailsZeroPage(page1, queryWrapper); |
|
|
|
|
limitB = zeroSize; |
|
|
|
|
page1.setSize(zeroSize); |
|
|
|
|
List<ReportDetailVO> zeroPage = reportDeliverMapeer.getDetailsZeroPage(limitA, limitB, queryWrapper); |
|
|
|
|
detailsPage.addAll(zeroPage); |
|
|
|
|
} |
|
|
|
|
page.setTotal(allTotal); |
|
|
|
|