upgrade(core): 适配最新版本的 mybatis-plus 3.5.8
Some checks failed
同步代码 / gitcode (push) Has been cancelled
同步代码 / gitlink (push) Has been cancelled
同步代码 / gitee (push) Has been cancelled

This commit is contained in:
冷冷 2024-09-23 14:08:44 +08:00
parent dd2b94c5d7
commit 772ecccfb9
3 changed files with 9 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -38,12 +38,12 @@
### 核心依赖
| 依赖 | 版本 |
|-----------------------------|------------|
| Spring Boot | 3.3.3 |
|-----------------------------|-----------|
| Spring Boot | 3.3.4 |
| Spring Cloud | 2023.0.3 |
| Spring Cloud Alibaba | 2023.0.1.2 |
| Spring Authorization Server | 1.3.1 |
| Mybatis Plus | 3.5.7 |
| Mybatis Plus | 3.5.8 |
| Vue | 3.4 |
| Element Plus | 2.7 |

View File

@ -13,8 +13,6 @@ import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;
import java.sql.SQLException;
/**
* 分页拦截器
* <p>
@ -51,7 +49,7 @@ public class PigPaginationInnerInterceptor extends PaginationInnerInterceptor {
@Override
public void beforeQuery(Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds,
ResultHandler resultHandler, BoundSql boundSql) throws SQLException {
ResultHandler resultHandler, BoundSql boundSql) {
IPage<?> page = ParameterUtils.findPage(parameter).orElse(null);
// size 小于 0 直接设置为 0 , 即不查询任何数据
if (null != page && page.getSize() < 0) {