Skip to content

Commit 6148649

Browse files
authored
假删除:解决 notDeletetValue 未配置也会用 false 作为默认值
1 parent 98ec093 commit 6148649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5256,7 +5256,7 @@ else if (userId instanceof Subquery) {}
52565256
boolean hasKey = deletedKey instanceof String && StringUtil.isNotEmpty(deletedKey, true);
52575257
Object deletedValue = hasKey ? accessFakeDeleteMap.get(KEY_DELETED_VALUE) : null;
52585258
boolean containNotDeletedValue = hasKey ? accessFakeDeleteMap.containsKey(KEY_NOT_DELETED_VALUE) : false;
5259-
Object notDeletedValue = containNotDeletedValue ? accessFakeDeleteMap.get(KEY_NOT_DELETED_VALUE) : false;
5259+
Object notDeletedValue = containNotDeletedValue ? accessFakeDeleteMap.get(KEY_NOT_DELETED_VALUE) : null;
52605260

52615261
if (deletedValue != null || containNotDeletedValue) {
52625262
boolean isFakeDelete = true;

0 commit comments

Comments
 (0)