forked from github/dataease
Merge pull request #4746 from dataease/pr@dev@fix_tree_filter
fix(过滤器): 树过滤器在sqlserver和ck数据源不能选择单字段过滤
This commit is contained in:
commit
8b3fe64325
@ -1170,7 +1170,7 @@ public class CKQueryProvider extends QueryProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String whereName = "";
|
String whereName = "";
|
||||||
if (request.getIsTree()) {
|
if (request.getIsTree() && whereNameList.size() > 1) {
|
||||||
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
||||||
} else {
|
} else {
|
||||||
whereName = whereNameList.get(0);
|
whereName = whereNameList.get(0);
|
||||||
|
@ -1107,7 +1107,7 @@ public class SqlserverQueryProvider extends QueryProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String whereName = "";
|
String whereName = "";
|
||||||
if (request.getIsTree()) {
|
if (request.getIsTree() && whereNameList.size() > 1) {
|
||||||
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
||||||
} else {
|
} else {
|
||||||
whereName = whereNameList.get(0);
|
whereName = whereNameList.get(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user