|
|
|
@ -106,7 +106,7 @@ public class SysOssServiceImpl extends ServiceImpl<SysOssDao, SysOssEntity> impl |
|
|
|
// 根目录 D:\ckp-file 加 当前年月日 |
|
|
|
String rootPath = filePath; |
|
|
|
String yearMonth = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); |
|
|
|
String path = rootPath + "/" + yearMonth + "/quotationDocumentFiles"; |
|
|
|
String path = rootPath + "\\" + yearMonth + "\\quotationDocumentFiles"; |
|
|
|
File fileDir = new File(path); |
|
|
|
if (!fileDir.exists()) { |
|
|
|
fileDir.mkdirs(); |
|
|
|
@ -120,7 +120,7 @@ public class SysOssServiceImpl extends ServiceImpl<SysOssDao, SysOssEntity> impl |
|
|
|
} |
|
|
|
// 保存文件信息 |
|
|
|
oss.setFileName(fileName); |
|
|
|
oss.setUrl(path + "/" + fileName); |
|
|
|
oss.setUrl(path + "\\" + fileName); |
|
|
|
oss.setNewFileName(newFileName); |
|
|
|
oss.setCreateDate(date); |
|
|
|
oss.setFileType(suffix); |
|
|
|
|