mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
feat: 下拉树支持末级为空的数据 #15959
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user