forked from github/dataease
feat(backend):后端fix
This commit is contained in:
parent
5ffe5d98eb
commit
9bac8c22b0
@ -139,10 +139,12 @@ public class DataSetGroupService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void getParent(List<DatasetGroup> list, DatasetGroup datasetGroup) {
|
public void getParent(List<DatasetGroup> list, DatasetGroup datasetGroup) {
|
||||||
if (StringUtils.isNotEmpty(datasetGroup.getPid())) {
|
if (ObjectUtils.isNotEmpty(datasetGroup)) {
|
||||||
DatasetGroup d = datasetGroupMapper.selectByPrimaryKey(datasetGroup.getPid());
|
if (StringUtils.isNotEmpty(datasetGroup.getPid())) {
|
||||||
list.add(d);
|
DatasetGroup d = datasetGroupMapper.selectByPrimaryKey(datasetGroup.getPid());
|
||||||
getParent(list, d);
|
list.add(d);
|
||||||
|
getParent(list, d);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user