Commit 6749bf69 by 吴迪

【新增】修改上传文件名

parent 0a028ad6
......@@ -49,7 +49,7 @@ public class UploadUtils {
}
String dateDirPath = DateUtils.formatDateToString(new Date(), DateUtils.FORMAT4);
String returnFilename = fileRequestPrefix + dateDirPath +"/" + filename;
filename = fileSavePath + dateDirPath +"/" + filename;
filename = fileSavePath + dateDirPath +"/" +IdWorkerUtils.getSEQByKey(IdKeysConstant.ID_SEQ_KEY)+"-"+filename;
File dest = new File(filename);
try {
file.transferTo(dest);
......
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