Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-bi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林锐标
slm-bi
Commits
920ee549
Commit
920ee549
authored
May 26, 2021
by
梁光意
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提示语
parent
e67dec12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
BusinessConfigServiceImpl.java
...syc/slm/slmbi/service/impl/BusinessConfigServiceImpl.java
+6
-6
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/BusinessConfigServiceImpl.java
View file @
920ee549
...
...
@@ -106,17 +106,17 @@ public class BusinessConfigServiceImpl extends ServiceImpl<BusinessConfigMapper,
}
if
(
CollectionUtils
.
isEmpty
(
dto
.
getWhere
())){
throw
new
SysException
(
"
where 条件不能为空
"
);
throw
new
SysException
(
"
暂无数据,请检查图表数据或关联查询组件是否已配置
"
);
}
dto
.
getWhere
().
forEach
(
x
->{
if
(
CollectionUtils
.
isEmpty
(
x
.
keySet
())){
throw
new
SysException
(
"
条件 and 或者or 都必须说明
"
);
throw
new
SysException
(
"
暂无数据,请检查图表数据或关联查询组件是否已配置
"
);
}
x
.
forEach
((
k
,
v
)->{
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
().
anyMatch
(
y
->
StringUtils
.
isBlank
(
y
.
getQueryType
())))
{
throw
new
SysException
(
"
where 条件不能key value queryType 都不能为空
"
);
throw
new
SysException
(
"
暂无数据,请检查图表数据或关联查询组件是否已配置
"
);
}
});
});
...
...
@@ -144,17 +144,17 @@ public class BusinessConfigServiceImpl extends ServiceImpl<BusinessConfigMapper,
}
}
if
(
CollectionUtils
.
isEmpty
(
dto
.
getWhere
())){
throw
new
SysException
(
"
where 条件不能为空
"
);
throw
new
SysException
(
"
暂无数据,请检查图表数据或关联查询组件是否已配置
"
);
}
dto
.
getWhere
().
forEach
(
x
->{
if
(
CollectionUtils
.
isEmpty
(
x
.
keySet
())){
throw
new
SysException
(
"
条件 and 或者or 都必须说明
"
);
throw
new
SysException
(
"
暂无数据,请检查图表数据或关联查询组件是否已配置
"
);
}
x
.
forEach
((
k
,
v
)->{
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
().
anyMatch
(
y
->
StringUtils
.
isBlank
(
y
.
getQueryType
())))
{
throw
new
SysException
(
"
where 条件不能key value queryType 都不能为空
"
);
throw
new
SysException
(
"
暂无数据,请检查图表数据或关联查询组件是否已配置
"
);
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment