forked from github/dataease
feat(仪表板): 过滤组件备选项支持传参过滤
This commit is contained in:
parent
89a17fe60b
commit
2724c3c172
@ -45,9 +45,11 @@ public class SQLProvider {
|
||||
if (ObjectUtils.isNotEmpty(xFields)) st_sql.add("groups", xFields);
|
||||
if (ObjectUtils.isNotEmpty(tableObj)) st_sql.add("table", tableObj);
|
||||
String customWheres = sqlMeta.getCustomWheres();
|
||||
String extWheres = sqlMeta.getExtWheres();
|
||||
String whereTrees = sqlMeta.getWhereTrees();
|
||||
List<String> wheres = new ArrayList<>();
|
||||
if (customWheres != null) wheres.add(customWheres);
|
||||
if (extWheres != null) wheres.add(extWheres);
|
||||
if (whereTrees != null) wheres.add(whereTrees);
|
||||
if (ObjectUtils.isNotEmpty(wheres)) st_sql.add("filters", wheres);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user