Commit 5ffe0955 by 吴迪

【新增】修改序号

parent 7bcf5da9
......@@ -47,9 +47,10 @@ public class UploadUtils {
if (!fileDir.exists()) {
fileDir.mkdirs();
}
String uuid = IdWorkerUtils.getSEQByKey(IdKeysConstant.ID_SEQ_KEY);
String dateDirPath = DateUtils.formatDateToString(new Date(), DateUtils.FORMAT4);
String returnFilename = fileRequestPrefix + dateDirPath +"/" +IdWorkerUtils.getSEQByKey(IdKeysConstant.ID_SEQ_KEY)+"-"+ filename;
filename = fileSavePath + dateDirPath +"/" +IdWorkerUtils.getSEQByKey(IdKeysConstant.ID_SEQ_KEY)+"-"+filename;
String returnFilename = fileRequestPrefix + dateDirPath +"/" +uuid+"-"+ filename;
filename = fileSavePath + dateDirPath +"/" +uuid+"-"+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