feat(backend):后端fix

This commit is contained in:
junjie 2021-05-25 17:50:41 +08:00
parent 5ffe5d98eb
commit 9bac8c22b0

View File

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