feat(REQ-2649): 修复detail接口查询,对null值的处理。
This commit is contained in:
parent
3b55f1d19f
commit
97ca09e10c
@ -105,6 +105,8 @@ public class BlackAndWhiteListRepository extends ServiceImpl<BlackAndWhiteListMa
|
||||
String fullKey = prefix.isEmpty() ? key : prefix + "." + key;
|
||||
if (value instanceof Map) {
|
||||
buildQueryWrapper(queryWrapper, (Map<String, Object>) value, fullKey);
|
||||
} else if (value == null){
|
||||
// 暂不支持对null的查询。要用IS NULL
|
||||
}else {
|
||||
queryWrapper.eq("param->>'$." + fullKey + "'", value);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user