Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

wz11wz
Copy link
Contributor

@wz11wz wz11wz commented Jul 18, 2025

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
Copy link
Contributor Author

wz11wz commented Jul 20, 2025 via email

@TommyLemon TommyLemon merged commit 4161902 into Tencent:master Jul 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants