feat(REQ-2649): 修复detail接口查询,对null值的处理。

This commit is contained in:
周敏 2024-08-21 15:02:36 +08:00
parent 3b55f1d19f
commit 97ca09e10c

View File

@ -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);
}