Commit 7bcf5da9 by 吴迪

【新增】增加编号

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