fix: 修复SQL Server下拉树报错

This commit is contained in:
junjun
2025-09-11 09:48:38 +08:00
committed by Junjun
parent 5f9f9bf62e
commit 77b347dc4c

View File

@@ -138,6 +138,9 @@ public class ExtWhere2Str {
String whereName = "";
if (request.getIsTree()) {
if (StringUtils.equalsIgnoreCase(dsType, DatasourceConfiguration.DatasourceType.sqlServer.getType()) && whereNameList.size() == 1) {
whereNameList.add("");
}
whereName = "CONCAT(" + StringUtils.join(whereNameList, ",',',") + ")";
} else {
whereName = whereNameList.get(0);