feat: 下拉树支持末级为空的数据 #15959

This commit is contained in:
junjun
2025-05-06 14:03:28 +08:00
committed by ulleo
parent 238b9e623a
commit 44dd328e62

View File

@@ -1202,7 +1202,9 @@ public class DatasetDataManage {
List<String> parentPkList = new ArrayList<>();
for (int i = 0; i < row.length; i++) {
String text = row[i];
if (StringUtils.isEmpty(text)) {
continue;
}
parentPkList.add(text);
String val = String.join(TreeUtils.SEPARATOR, parentPkList);
String parentVal = i == 0 ? TreeUtils.DEFAULT_ROOT : row[i - 1];