Skip to content

Commit

Permalink
处理jsqlparser版本(不兼容改动,需要自行引入模块).
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Oct 19, 2024
1 parent 9ae6730 commit 37251cf
Show file tree
Hide file tree
Showing 78 changed files with 5,817 additions and 11 deletions.
1 change: 0 additions & 1 deletion mybatis-plus-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dependencies {
api project(":mybatis-plus-annotation")
api "${lib.'jsqlparser'}"
api "${lib.mybatis}"

implementation "${lib.cglib}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ void test() throws IOException {
Dependency mybatis = dependenciesMap.get("mybatis");
Assertions.assertEquals("compile", mybatis.getScope());
Assertions.assertFalse(mybatis.isOptional());
Dependency jsqlParser = dependenciesMap.get("jsqlparser");
Assertions.assertEquals("compile", jsqlParser.getScope());
Assertions.assertFalse(jsqlParser.isOptional());
Dependency cglib = dependenciesMap.get("cglib");
Assertions.assertEquals("compile", cglib.getScope());
Assertions.assertTrue(cglib.isOptional());
Expand Down
3 changes: 0 additions & 3 deletions mybatis-plus-extension/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ dependencies {
implementation "${lib['mybatis-thymeleaf']}"
implementation "${lib.'mybatis-velocity'}"
implementation "${lib.'mybatis-freemarker'}"
implementation "de.ruedigermoeller:fst:3.0.4-jdk17"
implementation "com.github.ben-manes.caffeine:caffeine:2.9.3"
testImplementation "io.github.classgraph:classgraph:4.8.176"
testImplementation "${lib."spring-context-support"}"
testImplementation "${lib.h2}"
testImplementation "${lib.mysql}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import com.baomidou.mybatisplus.extension.plugins.pagination.DialectModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.dialects.IDialect;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.junit.platform.commons.util.ReflectionUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -36,7 +36,9 @@ void singleRealize() {
DialectModel model = o.buildPaginationSql("select * from table", 1, 10);
String sql = model.getDialectSql();
if (!map.containsKey(sql)) {
map.put(sql, Lists.newArrayList(i));
ArrayList<Class<?>> list = new ArrayList<>();
list.add(i);
map.put(sql,list);
} else {
map.get(sql).add(i);
}
Expand Down
1 change: 1 addition & 0 deletions mybatis-plus-jsqlparser/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tasks.matching {it.group == 'publishing' || it.group == 'central publish' }.each { it.enabled = false }
14 changes: 14 additions & 0 deletions mybatis-plus-jsqlparser/mybatis-plus-jsqlparser-4.9/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dependencies {
api "com.github.jsqlparser:jsqlparser:4.9"
api project(":mybatis-plus-jsqlparser:mybatis-plus-jsqlparser-common")
implementation "${lib."slf4j-api"}"
implementation "de.ruedigermoeller:fst:3.0.3"
implementation "com.github.ben-manes.caffeine:caffeine:2.9.3"
testImplementation "io.github.classgraph:classgraph:4.8.176"
testImplementation "${lib."spring-context-support"}"
testImplementation "${lib.h2}"
testImplementation group: 'com.google.guava', name: 'guava', version: '33.3.1-jre'

}

compileJava.dependsOn(processResources)

Large diffs are not rendered by default.

Loading

0 comments on commit 37251cf

Please sign in to comment.