1.附件存储路径修改
This commit is contained in:
parent
d691db5eee
commit
f63e40a79a
|
@ -63,7 +63,7 @@ public class AttachInfoServiceImpl extends ServiceImpl<FileInfoMapper, AttachInf
|
||||||
try {
|
try {
|
||||||
String path = temPathPrefix + file.getOriginalFilename();
|
String path = temPathPrefix + file.getOriginalFilename();
|
||||||
FileUtil.writeBytes(file.getBytes(),path);
|
FileUtil.writeBytes(file.getBytes(),path);
|
||||||
list.add(AttachInfoEntity.builder().businessType(businessType).attachPath(path).build());
|
list.add(AttachInfoEntity.builder().businessType(businessType).attachPath(FilePathEnum.ATTACH.getImageDownPath(path)).build());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue