Commit fbbf784a authored by 赵啸非's avatar 赵啸非

添加批量新增窗口业务接口

parent 05a41670
......@@ -61,21 +61,17 @@ public class UploadServiceImpl implements UploadService {
}
String rootPath = this.filePath.endsWith("/") ? this.filePath : this.filePath + "/";
log.info("filePath:"+this.filePath);
String filePath = rootPath + (StringUtils.isEmpty(prePath) ? "" : prePath + "/");
File pathDir = new File(filePath);
if (!pathDir.exists()) {
pathDir.mkdirs();
}
//String newName = IdUtil.fastSimpleUUID() + "." + extension;
String newName = new Date().getTime() + "." + extension;
String filePathAll = filePath + newName;
File uploadFile = new File(filePathAll);
try {
log.info("文件正在储存");
log.info("文件正在储存,filepath:"+filePathAll);
tempFile.transferTo(uploadFile);
} catch (Exception e) {
throw new AppException(e.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment