Skip to content

Commit 668ca2a

Browse files
Update AbstractSQLConfig.java
Tencent#602 假删除bug
1 parent c8c3b92 commit 668ca2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5242,8 +5242,8 @@ else if (userId instanceof Subquery) {}
52425242
Object deletedKey = accessFakeDeleteMap == null ? null : accessFakeDeleteMap.get(KEY_DELETED_KEY);
52435243
boolean hasKey = deletedKey instanceof String && StringUtil.isNotEmpty(deletedKey, true);
52445244
Object deletedValue = hasKey ? accessFakeDeleteMap.get(KEY_DELETED_VALUE) : null;
5245-
boolean containNotDeletedValue = hasKey ? accessFakeDeleteMap.containsKey(KEY_NOT_DELETED_VALUE) : null;
5246-
Object notDeletedValue = containNotDeletedValue ? accessFakeDeleteMap.get(KEY_NOT_DELETED_VALUE) : null;
5245+
boolean containNotDeletedValue = hasKey ? accessFakeDeleteMap.containsKey(KEY_NOT_DELETED_VALUE) : false;
5246+
Object notDeletedValue = containNotDeletedValue ? accessFakeDeleteMap.get(KEY_NOT_DELETED_VALUE) : false;
52475247

52485248
if (deletedValue != null || containNotDeletedValue) {
52495249
boolean isFakeDelete = true;
@@ -5962,4 +5962,4 @@ public AbstractSQLConfig setWithAsExprPreparedValueList(List<Object> list) {
59625962
this.withAsExprPreparedValueList = list;
59635963
return this;
59645964
}
5965-
}
5965+
}

0 commit comments

Comments
 (0)