From beccbc7f5390b5c88e9c4ac2b8cd155c17faa7a2 Mon Sep 17 00:00:00 2001 From: djz8236 Date: Mon, 10 Jul 2023 11:33:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=20=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/wh/controller/shstorehouse/ShStorehouseRest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/warehousing-system/project/wh-manage/src/main/java/com/wh/controller/shstorehouse/ShStorehouseRest.java b/warehousing-system/project/wh-manage/src/main/java/com/wh/controller/shstorehouse/ShStorehouseRest.java index f128c11c..94036fb4 100644 --- a/warehousing-system/project/wh-manage/src/main/java/com/wh/controller/shstorehouse/ShStorehouseRest.java +++ b/warehousing-system/project/wh-manage/src/main/java/com/wh/controller/shstorehouse/ShStorehouseRest.java @@ -167,13 +167,14 @@ public class ShStorehouseRest { String newFileName = System.currentTimeMillis() + originalFilename; filePath = fileRootPath+ suffix + newFileName; System.out.println(filePath); + ShStorehouseAttachmentDto dto=new ShStorehouseAttachmentDto(); String s = UUID.randomUUID().toString(); try { File file1 = new File(filePath); if (!file1.exists()) file1.mkdirs(); // 要是目录不存在,创建一个 file.transferTo(file1); // 保存起来 urlPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + "/archive/" + suffix + newFileName; - ShStorehouseAttachmentDto dto=new ShStorehouseAttachmentDto(); + // dto.setStorehouseSid(); // 库房sid // dto.setStorehouseName(); // 库房名称 dto.setFileName(newFileName); // 文件名称 @@ -187,7 +188,7 @@ public class ShStorehouseRest { } catch (Exception e) { e.printStackTrace(); } - return ResultBean.fireSuccess().setData(s); + return ResultBean.fireSuccess().setData(dto); } @ApiOperation("获取所有的企业信息") @GetMapping("/fetchEntList")