Skip to content

Join.java 中 SQLConfig outerConfig 重命名成 onConfig,然后用原来的 outerConfig 增加最外层的where 查询条件 - #829

Merged
TommyLemon merged 3 commits into
APIJSON:masterfrom
wz11wz:master
Jul 20, 2025
Merged

TommyLemon merged 3 commits into
APIJSON:masterfrom
wz11wz:master

Conversation

@wz11wz

@wz11wz 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
… 方法,然后再加回来 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  本身这些条件就是加到最外层。
@wz11wz

wz11wz commented Jul 20, 2025 via email

Copy link
Copy Markdown
Contributor Author

@TommyLemon
TommyLemon merged commit 4161902 into APIJSON:master Jul 20, 2025
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

2 participants