Skip to content

Commit

Permalink
upgrade(core): 适配最新版本的 mybatis-plus 3.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Sep 23, 2024
1 parent dd2b94c commit 772eccc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Binary file removed .idea/icon.png
Binary file not shown.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@

### 核心依赖

| 依赖 | 版本 |
|-----------------------------|------------|
| Spring Boot | 3.3.3 |
| Spring Cloud | 2023.0.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 |
| Vue | 3.4 |
| Element Plus | 2.7 |
| Spring Authorization Server | 1.3.1 |
| Mybatis Plus | 3.5.8 |
| Vue | 3.4 |
| Element Plus | 2.7 |

### 模块说明

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;

import java.sql.SQLException;

/**
* 分页拦截器
* <p>
Expand Down Expand Up @@ -51,7 +49,7 @@ public PigPaginationInnerInterceptor(IDialect dialect) {

@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) {
Expand Down

0 comments on commit 772eccc

Please sign in to comment.