Commit 1f1019fa by rongkailun

Merge remote-tracking branch 'origin/master'

parents 3765fc9a 5ffe0955
...@@ -118,9 +118,9 @@ public class EanUpcController { ...@@ -118,9 +118,9 @@ public class EanUpcController {
*/ */
@Login @Login
@RequestMapping("/api/getDetailById") @RequestMapping("/api/getDetailById")
public EanUpcEntityDetailVo getDetailById(@RequestBody EanUpcEntity eanUpcEntity) { public R getDetailById(@RequestBody EanUpcEntity eanUpcEntity) {
return eanUpcService.getDetailById(eanUpcEntity); return R.ok().put("data",eanUpcService.getDetailById(eanUpcEntity));
} }
......
...@@ -47,9 +47,10 @@ public class UploadUtils { ...@@ -47,9 +47,10 @@ public class UploadUtils {
if (!fileDir.exists()) { if (!fileDir.exists()) {
fileDir.mkdirs(); fileDir.mkdirs();
} }
String uuid = IdWorkerUtils.getSEQByKey(IdKeysConstant.ID_SEQ_KEY);
String dateDirPath = DateUtils.formatDateToString(new Date(), DateUtils.FORMAT4); String dateDirPath = DateUtils.formatDateToString(new Date(), DateUtils.FORMAT4);
String returnFilename = fileRequestPrefix + dateDirPath +"/" + filename; String returnFilename = fileRequestPrefix + dateDirPath +"/" +uuid+"-"+ filename;
filename = fileSavePath + dateDirPath +"/" + filename; filename = fileSavePath + dateDirPath +"/" +uuid+"-"+filename;
File dest = new File(filename); File dest = new File(filename);
try { try {
file.transferTo(dest); 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