Skip to content

Commit

Permalink
假删除:解决某些情况下读配置时抛异常,感谢 cloudAndMonkey 的贡献 #603
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Sep 24, 2023
2 parents 371cd0b + 6148649 commit 44fb269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -5255,7 +5255,7 @@ else if (userId instanceof Subquery) {}
Object deletedKey = accessFakeDeleteMap == null ? null : accessFakeDeleteMap.get(KEY_DELETED_KEY);
boolean hasKey = deletedKey instanceof String && StringUtil.isNotEmpty(deletedKey, true);
Object deletedValue = hasKey ? accessFakeDeleteMap.get(KEY_DELETED_VALUE) : null;
boolean containNotDeletedValue = hasKey ? accessFakeDeleteMap.containsKey(KEY_NOT_DELETED_VALUE) : null;
boolean containNotDeletedValue = hasKey ? accessFakeDeleteMap.containsKey(KEY_NOT_DELETED_VALUE) : false;
Object notDeletedValue = containNotDeletedValue ? accessFakeDeleteMap.get(KEY_NOT_DELETED_VALUE) : null;

if (deletedValue != null || containNotDeletedValue) {
Expand Down Expand Up @@ -6020,4 +6020,4 @@ public AbstractSQLConfig setWithAsExprPreparedValueList(List<Object> list) {
this.withAsExprPreparedValueList = list;
return this;
}
}
}

0 comments on commit 44fb269

Please sign in to comment.