Skip to content

Commit 22fe2be

Browse files
committed
解决重写 SimpleCallback 未生效,感谢 @zc0707 反馈和提供解决方案 #2
1 parent 74c6753 commit 22fe2be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/apijson/fastjson2/APIJSONSQLConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public APIJSONSQLConfig(RequestMethod method, int count, int page) {
6767
public static <T> SQLConfig<T, JSONObject, JSONArray> newSQLConfig(
6868
RequestMethod method, String table, String alias, JSONObject request, List<Join<T
6969
, JSONObject, JSONArray>> joinList, boolean isProcedure) throws Exception {
70-
return newSQLConfig(method, table, alias, request, joinList, isProcedure, new SimpleCallback<T>() {});
70+
return newSQLConfig(method, table, alias, request, joinList, isProcedure, (SimpleCallback<T>) SIMPLE_CALLBACK);
7171
}
7272

7373
public static class SimpleCallback<T> extends AbstractSQLConfig.SimpleCallback<T, JSONObject, JSONArray> {

src/main/java/apijson/fastjson2/javax/APIJSONSQLConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public APIJSONSQLConfig(RequestMethod method, int count, int page) {
6666
public static <T> SQLConfig<T, JSONObject, JSONArray> newSQLConfig(
6767
RequestMethod method, String table, String alias, JSONObject request, List<Join<T
6868
, JSONObject, JSONArray>> joinList, boolean isProcedure) throws Exception {
69-
return newSQLConfig(method, table, alias, request, joinList, isProcedure, new SimpleCallback<T>() {});
69+
return newSQLConfig(method, table, alias, request, joinList, isProcedure, (SimpleCallback<T>) SIMPLE_CALLBACK);
7070
}
7171

7272
public static class SimpleCallback<T> extends AbstractSQLConfig.SimpleCallback<T, JSONObject, JSONArray> {

0 commit comments

Comments
 (0)