空对象处理
This commit is contained in:
+1
-1
@@ -402,7 +402,7 @@ public class WatchServiceImpl implements IWatchService {
|
||||
periodList.add(new JSONObject().fluentPut("wdType", wdType));
|
||||
}
|
||||
}
|
||||
return periodList.parallelStream().map(jsonValue -> {
|
||||
return periodList.stream().filter(Objects::nonNull).map(jsonValue -> {
|
||||
JSONObject item = (JSONObject) jsonValue;
|
||||
WatchH5IndexItemVo itemVo = item.toJavaObject(WatchH5IndexItemVo.class);
|
||||
if (Objects.isNull(itemVo.getWarnMax())) {
|
||||
|
||||
Reference in New Issue
Block a user