1、getTaskTree转换执行规范时,排除掉文件夹信息
This commit is contained in:
@@ -598,7 +598,7 @@ public class ProjectServiceImpl extends BaseService implements IProjectService {
|
||||
if (listSdmResponse.isSuccess()) {
|
||||
List<FileMetadataInfoResp> dataList = listSdmResponse.getData();
|
||||
if (CollectionUtils.isNotEmpty(dataList)) {
|
||||
dataList = dataList.stream().filter(data -> StringUtils.isBlank(data.getDirType())).toList();
|
||||
dataList = dataList.stream().filter(data -> data.getDataType() == DataTypeEnum.FILE.getValue()).toList();
|
||||
if (CollectionUtils.isNotEmpty(dataList)) {
|
||||
dataMap = dataList.stream().collect(Collectors.toMap(FileMetadataInfoResp::getId, FileMetadataInfoResp::getOriginalName));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user