解决已知问题。

This commit is contained in:
chenxudong 2025-03-12 13:49:19 +08:00
parent ab8786be7f
commit 10ca9cd403
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@ public class CommonService {
if (fileType.equals(EleDataTypeEnum.FOLDER.desc) || StrUtil.isEmpty(fileType)) {
return parentId + "00" + version + timeStr;
}
FileFormat fileFormat = fileFormatService.getBaseMapper().selectOne(Wrappers.lambdaQuery(FileFormat.class).eq(FileFormat::getSuffixName, fileType));
FileFormat fileFormat = fileFormatService.getBaseMapper().selectOne(Wrappers.lambdaQuery(FileFormat.class)
.eq(FileFormat::getEffectFlag, EffectFlagEnum.EFFECT.code)
.eq(FileFormat::getSuffixName, fileType));
Assert.notNull(fileFormat, "不支持当前格式 {}", fileType);
return parentId + fileFormat.getSuffixNo() + version + timeStr;
}