|
@@ -69,6 +69,9 @@ public class TBAttachmentServiceImpl extends ServiceImpl<TBAttachmentMapper, TBA
|
|
|
throw new BusinessException("文件格式只能为" + attachmentTypeList.toString());
|
|
|
}
|
|
|
}
|
|
|
+ if (Objects.nonNull(fileName) && fileName.length() > 64) {
|
|
|
+ throw new BusinessException("文件名长度不能超过64个字符");
|
|
|
+ }
|
|
|
long size = file.getSize();
|
|
|
BigDecimal b = new BigDecimal(size);
|
|
|
BigDecimal num = new BigDecimal(1024);
|