mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix: 修复SQL Server下拉树报错
This commit is contained in:
@@ -139,9 +139,10 @@ public class ExtWhere2Str {
|
||||
String whereName = "";
|
||||
if (request.getIsTree()) {
|
||||
if (StringUtils.equalsIgnoreCase(dsType, DatasourceConfiguration.DatasourceType.sqlServer.getType()) && whereNameList.size() == 1) {
|
||||
whereNameList.add("''");
|
||||
whereName = whereNameList.get(0);
|
||||
} else {
|
||||
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
||||
}
|
||||
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
|
||||
} else {
|
||||
whereName = whereNameList.get(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user