Commit 7b93fc88 authored by 梁光意's avatar 梁光意

修改为空的提示符

parent 0a9e69e4
Pipeline #9301 passed with stages
in 1 minute 13 seconds
...@@ -114,7 +114,9 @@ public class BusinessConfigServiceImpl extends ServiceImpl<BusinessConfigMapper, ...@@ -114,7 +114,9 @@ public class BusinessConfigServiceImpl extends ServiceImpl<BusinessConfigMapper,
} }
x.forEach((k,v)->{ x.forEach((k,v)->{
if(v.stream().anyMatch(y -> StringUtils.isBlank(y.getKey())) if(v.stream().anyMatch(y -> StringUtils.isBlank(y.getKey()))
|| v.stream().filter(y -> !Condition.NO_LIMIT.getValue().equals(y.getQueryType())).anyMatch(y -> ObjectUtils.isEmpty(y.getValue())) || v.stream().filter(y -> !(Condition.NO_LIMIT.getValue().equals(y.getQueryType())
||Condition.NO_NULL.getValue().equals(y.getQueryType())
||Condition.IS_NULL.getValue().equals(y.getQueryType()))).anyMatch(y -> ObjectUtils.isEmpty(y.getValue()))
|| v.stream().anyMatch(y -> StringUtils.isBlank(y.getQueryType()))) { || v.stream().anyMatch(y -> StringUtils.isBlank(y.getQueryType()))) {
throw new SysException("暂无数据,请检查图表数据或关联查询组件是否已配置"); throw new SysException("暂无数据,请检查图表数据或关联查询组件是否已配置");
} }
...@@ -152,7 +154,9 @@ public class BusinessConfigServiceImpl extends ServiceImpl<BusinessConfigMapper, ...@@ -152,7 +154,9 @@ public class BusinessConfigServiceImpl extends ServiceImpl<BusinessConfigMapper,
} }
x.forEach((k,v)->{ x.forEach((k,v)->{
if(v.stream().anyMatch(y -> StringUtils.isBlank(y.getKey())) if(v.stream().anyMatch(y -> StringUtils.isBlank(y.getKey()))
|| v.stream().filter(y -> !Condition.NO_LIMIT.getValue().equals(y.getQueryType())).anyMatch(y -> ObjectUtils.isEmpty(y.getValue())) || v.stream().filter(y -> !(Condition.NO_LIMIT.getValue().equals(y.getQueryType())
||Condition.NO_NULL.getValue().equals(y.getQueryType())
||Condition.IS_NULL.getValue().equals(y.getQueryType()))).anyMatch(y -> ObjectUtils.isEmpty(y.getValue()))
|| v.stream().anyMatch(y -> StringUtils.isBlank(y.getQueryType()))) { || v.stream().anyMatch(y -> StringUtils.isBlank(y.getQueryType()))) {
throw new SysException("暂无数据,请检查图表数据或关联查询组件是否已配置"); throw new SysException("暂无数据,请检查图表数据或关联查询组件是否已配置");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment