Skip to content

Commit a9f9104

Browse files
Add files via upload
1、 支持多数据源 2、统一关闭connection连接 3、支持elasticSearch-sql 4、子查询、join 主表和附表使用相同数据源 5、相关小bug修复
1 parent d0550bd commit a9f9104

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

APIJSONORM/src/main/java/apijson/JSONObject.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public JSONObject setUserIdIn(List<Object> list) {
173173
TABLE_KEY_LIST.add(KEY_ORDER);
174174
TABLE_KEY_LIST.add(KEY_RAW);
175175
TABLE_KEY_LIST.add(KEY_JSON);
176+
TABLE_KEY_LIST.add(KEY_METHOD);
176177
}
177178

178179
//@key关键字都放这个类 >>>>>>>>>>>>>>>>>>>>>>

APIJSONORM/src/main/java/apijson/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public static boolean isNotEmpty(String s, boolean trim) {
354354
PATTERN_ALPHA = Pattern.compile("^[a-zA-Z]+$");
355355
PATTERN_ALPHA_BIG = Pattern.compile("^[A-Z]+$");
356356
PATTERN_ALPHA_SMALL = Pattern.compile("^[a-z]+$");
357-
PATTERN_NAME = Pattern.compile("^[0-9a-zA-Z_:]+$");//已用55个中英字符测试通过
357+
PATTERN_NAME = Pattern.compile("^[0-9a-zA-Z_.:]+$");//已用55个中英字符测试通过
358358
//newest phone regex expression reference https://github.com/VincentSit/ChinaMobilePhoneNumberRegex
359359
PATTERN_PHONE = Pattern.compile("^1(?:3\\d{3}|5[^4\\D]\\d{2}|8\\d{3}|7(?:[0-35-9]\\d{2}|4(?:0\\d|1[0-2]|9\\d))|9[0-35-9]\\d{2}|6[2567]\\d{2}|4(?:(?:10|4[01])\\d{3}|[68]\\d{4}|[579]\\d{2}))\\d{6}$");
360360
PATTERN_EMAIL = Pattern.compile("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");

0 commit comments

Comments
 (0)