fix: 修复SQL Server下拉树报错

This commit is contained in:
junjun
2025-09-11 09:48:38 +08:00
parent db48238b2b
commit abe6a3ce55

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