diff --git a/src/main/java/com/gaotao/config/MybatisPlusConfig.java b/src/main/java/com/gaotao/config/MybatisPlusConfig.java index 9ded561..3e7e20d 100644 --- a/src/main/java/com/gaotao/config/MybatisPlusConfig.java +++ b/src/main/java/com/gaotao/config/MybatisPlusConfig.java @@ -21,8 +21,8 @@ public class MybatisPlusConfig { @Bean public PaginationInterceptor paginationInterceptor() { PaginationInterceptor paginationInterceptor = new PaginationInterceptor(); - // 当前页码大于总页数返回首页 - paginationInterceptor.setOverflow(true); + // 全局统一治理:页码越界时不回退到首页,避免出现“高页码显示第一页数据”的错觉 + paginationInterceptor.setOverflow(false); // 设置最大分页条数 10000条记录 paginationInterceptor.setLimit(10000); return paginationInterceptor; diff --git a/src/main/resources/mapper/report/InboundNotificationReportMapper.xml b/src/main/resources/mapper/report/InboundNotificationReportMapper.xml index 5060c44..d223c0c 100644 --- a/src/main/resources/mapper/report/InboundNotificationReportMapper.xml +++ b/src/main/resources/mapper/report/InboundNotificationReportMapper.xml @@ -72,9 +72,6 @@ AND h.order_status = #{query.orderStatus} - - AND h.order_status IN ('草稿', '编辑中', '待入库', '已入库', '已关闭') - AND h.supplier_id LIKE '%' + #{query.supplierId} + '%' @@ -133,9 +130,6 @@ AND h.order_status = #{query.orderStatus} - - AND h.order_status IN ('草稿', '编辑中', '待入库', '已入库', '已关闭') - AND h.supplier_id LIKE '%' + #{query.supplierId} + '%'