Skip to content

Commit 1810dcc

Browse files
committed
Java:3 个 Demo 升级 APIJSON, apijson-framework, 自身 版本至 4.6.5;APIJSONBoot 升级 unitauto-java 和 unitauto-jar 分别至 2.6.0 和 2.6.1
1 parent 43b2a6c commit 1810dcc

File tree

13 files changed

+11
-14
lines changed

13 files changed

+11
-14
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

APIJSON-Java-Server/APIJSONBoot/pom.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.boot</groupId>
77
<artifactId>apijson-boot</artifactId>
8-
<version>4.6.3</version>
8+
<version>4.6.5</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONBoot</name>
@@ -36,12 +36,12 @@
3636
<dependency>
3737
<groupId>com.github.TommyLemon</groupId>
3838
<artifactId>unitauto-java</artifactId>
39-
<version>2.5.3</version>
39+
<version>2.6.0</version>
4040
</dependency>
4141
<dependency>
4242
<groupId>com.github.TommyLemon</groupId>
4343
<artifactId>unitauto-jar</artifactId>
44-
<version>2.5.3</version>
44+
<version>2.6.1</version>
4545
</dependency>
4646
<dependency>
4747
<groupId>io.github.classgraph</groupId>
@@ -55,12 +55,12 @@
5555
<dependency>
5656
<groupId>com.github.Tencent</groupId>
5757
<artifactId>APIJSON</artifactId>
58-
<version>4.6.1</version>
58+
<version>4.6.5</version>
5959
</dependency>
6060
<dependency>
6161
<groupId>com.github.APIJSON</groupId>
6262
<artifactId>apijson-framework</artifactId>
63-
<version>4.6.3</version>
63+
<version>4.6.5</version>
6464
</dependency>
6565
<!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> -->
6666

APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/demo/DemoSQLConfig.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public String getUserIdKey(String database, String schema, String table) {
9292
RAW_MAP.put("(`Comment`.`userId`=`to`.`userId`)", ""); // 已经是一个条件表达式了,用 () 包裹是为了避免 JSON 中的 key 拼接在前面导致 SQL 出错
9393
RAW_MAP.put("sum(if(userId%2=0,1,0))", ""); // 超过单个函数的 SQL 表达式
9494
RAW_MAP.put("sumUserIdIsEven", "sum(if(`userId`%2=0,1,0)) AS sumUserIdIsEven"); // 简化前端传参
95-
RAW_MAP.put("SUBSTRING_INDEX(SUBSTRING_INDEX(content,',',1),',',-1)", ""); // APIAuto 不支持 ',可以用 Postman 测
96-
RAW_MAP.put("SUBSTRING_INDEX(SUBSTRING_INDEX(content,'.',1),'.',-1) AS subContent", ""); // APIAuto 不支持 ',可以用 Postman 测
95+
RAW_MAP.put("substring_index(substring_index(content,',',1),',',-1)", ""); // APIAuto 不支持 ',可以用 Postman 测
96+
RAW_MAP.put("substring_index(substring_index(content,'.',1),'.',-1) AS subContent", ""); // APIAuto 不支持 ',可以用 Postman 测
9797
RAW_MAP.put("commentWhereItem1","(`Comment`.`userId` = 38710 AND `Comment`.`momentId` = 470)");
9898
RAW_MAP.put("to_days(now())-to_days(`date`)<=7",""); // 给 @having 使用
9999
}

APIJSON-Java-Server/APIJSONDemo/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.demo</groupId>
77
<artifactId>apijson-demo</artifactId>
8-
<version>4.6.3</version>
8+
<version>4.6.5</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONDemo</name>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

APIJSON-Java-Server/APIJSONFinal/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>apijson.jfinal</groupId>
55
<artifactId>apijson-final</artifactId>
66
<packaging>jar</packaging>
7-
<version>4.6.3</version>
7+
<version>4.6.5</version>
88
<name>Demo project for APIJSON Server based on JFinal</name>
99
<url>http://maven.apache.org</url>
1010
<dependencies>
@@ -26,12 +26,12 @@
2626
<dependency>
2727
<groupId>com.github.Tencent</groupId>
2828
<artifactId>APIJSON</artifactId>
29-
<version>4.6.1</version>
29+
<version>4.6.5</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.github.APIJSON</groupId>
3333
<artifactId>apijson-framework</artifactId>
34-
<version>4.6.3</version>
34+
<version>4.6.5</version>
3535
</dependency>
3636
<!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> -->
3737

APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/DemoSQLConfig.java

-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ public String getUserIdKey(String database, String schema, String table) {
8686
// }
8787
};
8888

89-
// 自定义where条件拼接
90-
//RAW_MAP.put("commentWhereItem1","`Comment`.`userId` = 38710 and `Comment`.`momentId` = 470");
91-
//RAW_MAP.put("commentWhereItem2","`Comment`.`toId` = 0");
9289
}
9390

9491

0 commit comments

Comments
 (0)