Join.java 中 SQLConfig outerConfig 重命名成 onConfig,然后用原来的 outerConfig 增加最外层的where 查询条件 by wz11wz · Pull Request #829 · APIJSON/APIJSON
Repository navigation
Join.java 中 SQLConfig outerConfig 重命名成 onConfig,然后用原来的 outerConfig 增加最外层的where 查询条件 - #829
Merged
TommyLemon merged 3 commits into APIJSON:master from wz11wz:master Jul 20, 2025
Merged
Join.java 中 SQLConfig outerConfig 重命名成 onConfig,然后用原来的 outerConfig 增加最外层的where 查询条件 #829 TommyLemon merged 3 commits into APIJSON:master from wz11wz:master
Conversation
wz11wz commented Jul 18, 2025
Copy link Copy Markdown
Contributor
AbstractSQLConfig gainWhereString 增加适配逻辑.
1.inner join 本身是最外面增加条件,忽略这种情况
2.onConfig "@group ": "key2+" // JOIN 外层 GROYP BY key2
"@having ": "count(key3)>0" // JOIN 外层 HAVING count(key3)>0
"@order ": "key2+,key3-" // JOIN 外层 ORDER BY key2 ASC, key3 DESC 本身这些条件就是加到最外层。
"join": {
"</Location_info/code@": {
"id": "88888",
"@column": "key2,key3",
"@group": "key2+",
"@having": "count(key3)>0",
"@order": "key2+,key3-"
},
"id": "88888",只有这个条件加 on 上. 其他 "@group": "key2+","@having": "count(key3)>0", "@order": "key2+,key3-" 都是加到 最外面的where条件上.
wz11wz
and others
added 3 commits
July 18, 2025 16:39
fix: 现在的 Join.java 中 SQLConfig outerConfig 重命名成 onConfig 及对应的 get set...
3c21439
... 方法,然后再加回来 SQLConfig outerConfig,然后下方的键值对放到 outerConfig 上,后面再具体 AbstractSQLConfig gainWhereString。 1、inner join 本身是最外面增加条件,没有增加 2、onConfig "@group": "key2+" // JOIN 外层 GROYP BY key2 "@having": "count(key3)>0" // JOIN 外层 HAVING count(key3)>0 "@order": "key2+,key3-" // JOIN 外层 ORDER BY key2 ASC, key3 DESC 本身这些条件就是加到最外层。
Merge remote-tracking branch 'origin/master'
b05016f
优化 AbstractParser.java 缩进
2122b8c
TommyLemon
approved these changes
Jul 20, 2025
View reviewed changes
wz11wz commented Jul 20, 2025 via email
Copy link Copy Markdown
Contributor
Author
| 这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。 |
4161902
into
APIJSON : master
Jul 20, 2025
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment