Commit 1f1019fa by rongkailun

Merge remote-tracking branch 'origin/master'

parents 3765fc9a 5ffe0955
......@@ -118,9 +118,9 @@ public class EanUpcController {
*/
@Login
@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 {
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 +"/" + filename;
filename = fileSavePath + dateDirPath +"/" + 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