mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 12:48:58 +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 |
@ -38,12 +38,12 @@
|
|||||||
### 核心依赖
|
### 核心依赖
|
||||||
|
|
||||||
| 依赖 | 版本 |
|
| 依赖 | 版本 |
|
||||||
|-----------------------------|------------|
|
|-----------------------------|-----------|
|
||||||
| Spring Boot | 3.3.3 |
|
| Spring Boot | 3.3.4 |
|
||||||
| Spring Cloud | 2023.0.3 |
|
| Spring Cloud | 2023.0.3 |
|
||||||
| Spring Cloud Alibaba | 2023.0.1.2 |
|
| Spring Cloud Alibaba | 2023.0.1.2 |
|
||||||
| Spring Authorization Server | 1.3.1 |
|
| Spring Authorization Server | 1.3.1 |
|
||||||
| Mybatis Plus | 3.5.7 |
|
| Mybatis Plus | 3.5.8 |
|
||||||
| Vue | 3.4 |
|
| Vue | 3.4 |
|
||||||
| Element Plus | 2.7 |
|
| 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.ResultHandler;
|
||||||
import org.apache.ibatis.session.RowBounds;
|
import org.apache.ibatis.session.RowBounds;
|
||||||
|
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页拦截器
|
* 分页拦截器
|
||||||
* <p>
|
* <p>
|
||||||
@ -51,7 +49,7 @@ public class PigPaginationInnerInterceptor extends PaginationInnerInterceptor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void beforeQuery(Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds,
|
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);
|
IPage<?> page = ParameterUtils.findPage(parameter).orElse(null);
|
||||||
// size 小于 0 直接设置为 0 , 即不查询任何数据
|
// size 小于 0 直接设置为 0 , 即不查询任何数据
|
||||||
if (null != page && page.getSize() < 0) {
|
if (null != page && page.getSize() < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user