fix: 修复SQL Server下拉树报错

This commit is contained in:
junjun
2025-09-11 17:38:58 +08:00
parent 22387d8ebf
commit 600a6e54b1

View File

@@ -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);
}