Merge pull request #600 from Arowa-Z/main

fix: 修复EXISTS、NOT EXISTS的子select语句无法自动附加逻辑删除的问题
This commit is contained in:
Michael Yang 2025-11-10 10:26:42 +08:00 committed by GitHub
commit a4793eaceb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,12 @@ class WrapperUtil {
} }
} }
// not Brackets // not Brackets
else { else if (condition instanceof OperatorSelectCondition) {
if (list == null) {
list = new ArrayList<>();
}
list.add(((OperatorSelectCondition) condition).getQueryWrapper());
} else {
Object value = condition.getValue(); Object value = condition.getValue();
if (value instanceof QueryWrapper) { if (value instanceof QueryWrapper) {
if (list == null) { if (list == null) {