Merge branch 'main' of http://carsafe.uicp.cn/toolchaintechnologycenter/spdm-backend
This commit is contained in:
@@ -30,7 +30,7 @@ public enum FileDictTagEnum {
|
||||
FILE_TYPE("ALL_FILE_TYPE", "fileTypeDictClass", "fileTypeDictValue", "fileTypeDictName");
|
||||
|
||||
/**
|
||||
* 字典分类(对应数据库中的 dictClass)
|
||||
* 字典分类(对应数据库中的 dictClass,如 “ALL_FILE_TYPE”)
|
||||
*/
|
||||
private final String dictClass;
|
||||
|
||||
|
||||
@@ -89,6 +89,9 @@ public class DimensionTemplateServiceImpl extends ServiceImpl<DimensionTemplateM
|
||||
@Autowired
|
||||
private ISimulationTaskFeignClient simulationTaskFeignClient;
|
||||
|
||||
@Autowired
|
||||
IFileDictTagQueryService fileDictTagQueryService;
|
||||
|
||||
|
||||
@Autowired
|
||||
private TagMapService tagMapService;
|
||||
@@ -381,12 +384,16 @@ public class DimensionTemplateServiceImpl extends ServiceImpl<DimensionTemplateM
|
||||
|
||||
// 创建包含children的DTO对象
|
||||
FileMetadataChildrenDTO dto = FileMetadataConvert.INSTANCE.convertToFileMetadataChildrenDTO(baseInfo);
|
||||
// 设置文件的节点信息tag1-tag10
|
||||
hierarchyHelper.setTagReqFromFileMetadata(baseInfo, dto);
|
||||
// 填充children的文件类型标签信息
|
||||
fileDictTagQueryService.fillFileTagsForRespList(Collections.singletonList(dto), FileMetadataInfoResp::getId);
|
||||
|
||||
// 转换children列表,并为每个child设置totalName
|
||||
List<FileMetadataInfoResp> children = new ArrayList<>();
|
||||
for (FileMetadataInfo fileInfo : group) {
|
||||
FileMetadataChildrenDTO childDto = FileMetadataConvert.INSTANCE.convertToFileMetadataChildrenDTO(fileInfo);
|
||||
// 设置文件的节点信息tag1-tag10
|
||||
hierarchyHelper.setTagReqFromFileMetadata(fileInfo, childDto);
|
||||
// 设置totalName(从bucketName中提取)
|
||||
String objectKey = fileInfo.getObjectKey();
|
||||
@@ -409,6 +416,8 @@ public class DimensionTemplateServiceImpl extends ServiceImpl<DimensionTemplateM
|
||||
childDto.setPermissionValue(fileUserPermissionService.getMergedPermission(fileInfo.getId(), ThreadLocalContext.getUserId()));
|
||||
children.add(childDto);
|
||||
}
|
||||
// 填充children的文件类型标签信息
|
||||
fileDictTagQueryService.fillFileTagsForRespList(children, FileMetadataInfoResp::getId);
|
||||
|
||||
// 目前已经移除了学科节点,学科信息作为task节点的字段附属信息
|
||||
if(ObjectUtils.isNotEmpty(dto.getOwntaskId()) ||
|
||||
|
||||
Reference in New Issue
Block a user