|
|
|
@ -27,6 +27,12 @@ public class OutboundNotificationReportServiceImpl implements OutboundNotificati |
|
|
|
int limit = query.getLimit() != null ? query.getLimit() : 50; |
|
|
|
int offset = (page - 1) * limit; |
|
|
|
|
|
|
|
// 当limit < 0时(如-1),表示导出全部数据,不分页 |
|
|
|
if (limit < 0) { |
|
|
|
offset = 0; |
|
|
|
limit = -1; |
|
|
|
} |
|
|
|
|
|
|
|
// 查询数据 |
|
|
|
List<OutboundNotificationReportData> list = outboundNotificationReportMapper.searchOutboundNotificationReport( |
|
|
|
query, userName, offset, limit); |
|
|
|
@ -35,7 +41,8 @@ public class OutboundNotificationReportServiceImpl implements OutboundNotificati |
|
|
|
int total = outboundNotificationReportMapper.countOutboundNotificationReport(query, userName); |
|
|
|
|
|
|
|
// 构建分页结果 |
|
|
|
return new PageUtils(list, total, limit, page); |
|
|
|
int pageLimit = limit > 0 ? limit : total; |
|
|
|
return new PageUtils(list, total, pageLimit, page); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|