Skip to content

Commit 155816e

Browse files
committed
🎨 适配重构后的mybatis-pageable
1 parent 82b8e3e commit 155816e

File tree

7 files changed

+18
-19
lines changed

7 files changed

+18
-19
lines changed

api-boot-project/api-boot-autoconfigure/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888

8989
<!--MinBox Dependencies-->
9090
<dependency>
91-
<groupId>com.gitee.hengboy</groupId>
92-
<artifactId>mybatis-pageable-core</artifactId>
91+
<groupId>org.minbox.framework</groupId>
92+
<artifactId>mybatis-pageable</artifactId>
9393
<optional>true</optional>
9494
</dependency>
9595
<dependency>

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/pageable/ApiBootMyBatisPageableProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
package org.minbox.framework.api.boot.autoconfigure.pageable;
1919

20-
import com.gitee.hengboy.mybatis.pageable.common.enums.DialectEnum;
2120
import lombok.Data;
21+
import org.minbox.framework.mybatis.pageable.common.DataBaseDialect;
2222
import org.springframework.boot.context.properties.ConfigurationProperties;
2323
import org.springframework.context.annotation.Configuration;
2424

@@ -43,9 +43,9 @@ public class ApiBootMyBatisPageableProperties {
4343
/**
4444
* The database dialect
4545
* <p>
46-
* default use {@link DialectEnum#MYSQL}
46+
* default use {@link DataBaseDialect#MYSQL}
4747
*/
48-
private DialectEnum dialect = DialectEnum.MYSQL;
48+
private DataBaseDialect dialect = DataBaseDialect.MYSQL;
4949

5050
/**
5151
* Convert this instance to {@link Properties}

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/pageable/ApiBootMybatisPageableAutoConfiguration.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
package org.minbox.framework.api.boot.autoconfigure.pageable;
1919

20-
import com.gitee.hengboy.mybatis.pageable.config.PageableConfigurer;
21-
import com.gitee.hengboy.mybatis.pageable.interceptor.MyBatisExecutePageableInterceptor;
2220
import org.apache.ibatis.plugin.Interceptor;
2321
import org.apache.ibatis.session.SqlSessionFactory;
22+
import org.minbox.framework.mybatis.pageable.common.configure.PageableConfigurer;
23+
import org.minbox.framework.mybatis.pageable.interceptor.MyBatisExecutePageableInterceptor;
2424
import org.springframework.beans.factory.ObjectProvider;
2525
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
@@ -91,8 +91,8 @@ void addInterceptors() {
9191
* @param sqlSessionFactory The {@link SqlSessionFactory} instance
9292
*/
9393
void addPreInterceptors(SqlSessionFactory sqlSessionFactory) {
94-
if (allowPageableConfigurer() && pageableConfigurer.prePlugins() != null) {
95-
loopAddInterceptor(pageableConfigurer.prePlugins(), sqlSessionFactory);
94+
if (allowPageableConfigurer() && pageableConfigurer.getPrePlugins() != null) {
95+
loopAddInterceptor(pageableConfigurer.getPrePlugins(), sqlSessionFactory);
9696
}
9797
}
9898

@@ -102,8 +102,8 @@ void addPreInterceptors(SqlSessionFactory sqlSessionFactory) {
102102
* @param sqlSessionFactory The {@link SqlSessionFactory} instance
103103
*/
104104
void addPostInterceptors(SqlSessionFactory sqlSessionFactory) {
105-
if (allowPageableConfigurer() && pageableConfigurer.postPlugins() != null) {
106-
loopAddInterceptor(pageableConfigurer.postPlugins(), sqlSessionFactory);
105+
if (allowPageableConfigurer() && pageableConfigurer.getPostPlugins() != null) {
106+
loopAddInterceptor(pageableConfigurer.getPostPlugins(), sqlSessionFactory);
107107
}
108108
}
109109

api-boot-project/api-boot-starters/api-boot-starter-mybatis-pageable/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@
4949
<groupId>org.minbox.framework</groupId>
5050
<artifactId>api-boot-starter</artifactId>
5151
</dependency>
52-
<!--ApiBoot Mybatis Pageable-->
5352
<dependency>
54-
<groupId>com.gitee.hengboy</groupId>
55-
<artifactId>mybatis-pageable-core</artifactId>
53+
<groupId>org.minbox.framework</groupId>
54+
<artifactId>mybatis-pageable</artifactId>
5655
</dependency>
5756
</dependencies>
5857

api-boot-samples/api-boot-sample-integration/src/main/java/org/minbox/framework/knowledge/library/service/article/service/ArticleInfoService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import com.gitee.hengboy.mybatis.enhance.dsl.serach.Searchable;
44
import com.gitee.hengboy.mybatis.enhance.dsl.update.filter.SetFilter;
55
import com.gitee.hengboy.mybatis.enhance.sort.SortEnum;
6-
import com.gitee.hengboy.mybatis.pageable.Page;
7-
import com.gitee.hengboy.mybatis.pageable.request.PageableRequest;
86
import org.minbox.framework.knowledge.library.common.base.BaseService;
97
import org.minbox.framework.knowledge.library.common.constants.Constant;
108
import org.minbox.framework.knowledge.library.common.dsl.DArticleInfoEntity;
@@ -18,6 +16,8 @@
1816
import org.minbox.framework.knowledge.library.service.comment.service.CommentService;
1917
import org.minbox.framework.knowledge.library.service.constants.ResourceType;
2018
import org.minbox.framework.knowledge.library.service.user.service.UserLikeRecordService;
19+
import org.minbox.framework.mybatis.pageable.Page;
20+
import org.minbox.framework.mybatis.pageable.request.PageableRequest;
2121
import org.minbox.framework.resource.annotation.ResourceField;
2222
import org.minbox.framework.resource.annotation.ResourceLoad;
2323
import org.minbox.framework.resource.enums.ResourceStoreEvent;

api-boot-samples/api-boot-sample-mybatis-pageable/src/main/java/org/minbox/framework/api/boot/sample/MybatisPageableSampleController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package org.minbox.framework.api.boot.sample;
1919

20-
import com.gitee.hengboy.mybatis.pageable.Page;
20+
import org.minbox.framework.mybatis.pageable.Page;
2121
import org.springframework.beans.factory.annotation.Autowired;
2222
import org.springframework.web.bind.annotation.GetMapping;
2323
import org.springframework.web.bind.annotation.RestController;

api-boot-samples/api-boot-sample-mybatis-pageable/src/main/java/org/minbox/framework/api/boot/sample/MybatisPageableSampleService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
package org.minbox.framework.api.boot.sample;
1919

20-
import com.gitee.hengboy.mybatis.pageable.Page;
21-
import com.gitee.hengboy.mybatis.pageable.request.PageableRequest;
20+
import org.minbox.framework.mybatis.pageable.Page;
21+
import org.minbox.framework.mybatis.pageable.request.PageableRequest;
2222
import org.springframework.beans.factory.annotation.Autowired;
2323
import org.springframework.stereotype.Service;
2424

0 commit comments

Comments
 (0)