Skip to content

Commit

Permalink
fix query variable default value not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
shanmengm committed Jun 21, 2019
1 parent 0cdba86 commit 446aa73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ private void packageParams(boolean isProjectMaintainer, Long viewId, SqlEntity s
}

//查询参数
if (!CollectionUtils.isEmpty(queryVariables)) {
if (!CollectionUtils.isEmpty(queryVariables) && !CollectionUtils.isEmpty(sqlEntity.getQuaryParams())) {
if (!CollectionUtils.isEmpty(paramList)) {
Map<String, List<SqlVariable>> map = queryVariables.stream().collect(Collectors.groupingBy(SqlVariable::getName));
paramList.forEach(p -> {
Expand Down

0 comments on commit 446aa73

Please sign in to comment.