fix: 修复SQL Server下拉树报错

This commit is contained in:
junjun
2025-09-11 17:38:58 +08:00
committed by Junjun
parent 81efaff96b
commit 47ac58beba

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