Browse Source

2025.04.18 rfq以及审批优化

java8
jiayang yue 11 months ago
parent
commit
05aafcd7d0
  1. 4
      src/main/java/com/xujie/sys/modules/oss/service/impl/SysOssServiceImpl.java

4
src/main/java/com/xujie/sys/modules/oss/service/impl/SysOssServiceImpl.java

@ -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);

Loading…
Cancel
Save