Merge pull request #4746 from dataease/pr@dev@fix_tree_filter

fix(过滤器): 树过滤器在sqlserver和ck数据源不能选择单字段过滤
This commit is contained in:
fit2cloud-chenyw
2023-03-10 12:13:14 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1170,7 +1170,7 @@ public class CKQueryProvider extends QueryProvider {
}
String whereName = "";
if (request.getIsTree()) {
if (request.getIsTree() && whereNameList.size() > 1) {
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
} else {
whereName = whereNameList.get(0);

View File

@@ -1107,7 +1107,7 @@ public class SqlserverQueryProvider extends QueryProvider {
}
String whereName = "";
if (request.getIsTree()) {
if (request.getIsTree() && whereNameList.size() > 1) {
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
} else {
whereName = whereNameList.get(0);