JYW
2024-04-26 e44da3a342bad6552b6a6998b9ead44c540c2e47
inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java
@@ -64,7 +64,7 @@
            pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "_" + file.getOriginalFilename();
            urlString = realpath + "/" + pathName;
            file.transferTo(new File(urlString));
            return Result.success(insReportService.inReport("/word/" + pathName, id));
            return Result.success(insReportService.inReport("/word/"+pathName, id));
        } catch (Exception e) {
            throw new ErrorException("文件上传失败");
        }