fix(过滤器): 树过滤器在sqlserver和ck数据源不能选择单字段过滤

This commit is contained in:
fit2cloud-chenyw 2023-03-10 12:05:13 +08:00
parent 687de6e078
commit 0395d34dee
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);