value
2024-04-29 ce7184b9b054e4cd98af2d747545d04ae85c2728
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("文件上传失败");
        }