mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 04:47:10 +08:00
upgrade(core): 适配最新版本的 mybatis-plus 3.5.8
This commit is contained in:
parent
dd2b94c5d7
commit
772ecccfb9
BIN
.idea/icon.png
BIN
.idea/icon.png
Binary file not shown.
Before Width: | Height: | Size: 7.9 KiB |
16
README.md
16
README.md
@ -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 |
|
||||
|
||||
### 模块说明
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user