Skip to content

Commit 44fb269

Browse files
authored
假删除:解决某些情况下读配置时抛异常,感谢 cloudAndMonkey 的贡献 Tencent#603
Tencent#603
2 parents 371cd0b + 6148649 commit 44fb269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5255,7 +5255,7 @@ else if (userId instanceof Subquery) {}
52555255
Object deletedKey = accessFakeDeleteMap == null ? null : accessFakeDeleteMap.get(KEY_DELETED_KEY);
52565256
boolean hasKey = deletedKey instanceof String && StringUtil.isNotEmpty(deletedKey, true);
52575257
Object deletedValue = hasKey ? accessFakeDeleteMap.get(KEY_DELETED_VALUE) : null;
5258-
boolean containNotDeletedValue = hasKey ? accessFakeDeleteMap.containsKey(KEY_NOT_DELETED_VALUE) : null;
5258+
boolean containNotDeletedValue = hasKey ? accessFakeDeleteMap.containsKey(KEY_NOT_DELETED_VALUE) : false;
52595259
Object notDeletedValue = containNotDeletedValue ? accessFakeDeleteMap.get(KEY_NOT_DELETED_VALUE) : null;
52605260

52615261
if (deletedValue != null || containNotDeletedValue) {
@@ -6020,4 +6020,4 @@ public AbstractSQLConfig setWithAsExprPreparedValueList(List<Object> list) {
60206020
this.withAsExprPreparedValueList = list;
60216021
return this;
60226022
}
6023-
}
6023+
}

0 commit comments

Comments
 (0)