diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java index f20529e6..4f207d94 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java @@ -307,14 +307,14 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi //所有需要上传的图片 for (File imageFile : imageFiles) { //查看是否存在此image - String name = imageFile.getName(); String fileName = imageFile.getName().split("\\.")[0]; //根据fileId,从gaea_file中读出filePath LambdaQueryWrapper queryWrapper = Wrappers.lambdaQuery(); queryWrapper.eq(GaeaFile::getFileId, fileName); GaeaFile gaeaFile = gaeaFileService.selectOne(queryWrapper); if (null == gaeaFile) { - GaeaFile upload = gaeaFileService.upload(null, imageFile, fileName); + GaeaFile upload = gaeaFileService.upload(imageFile, fileName); + log.info("存入图片: {}", upload.getFilePath()); fileMap.put(fileName, upload.getUrlPath()); } } @@ -323,7 +323,6 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi } - //解析cotent ReportDashboardObjectDto detail = JSONObject.parseObject(content, ReportDashboardObjectDto.class); //将涉及到的图片路径替换(1.背景图,2.组件为图片的) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/controller/GaeaFileController.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/controller/GaeaFileController.java index 9a900159..d0d45afc 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/controller/GaeaFileController.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/controller/GaeaFileController.java @@ -33,7 +33,7 @@ public class GaeaFileController extends BaseController download(HttpServletRequest request, HttpServletResponse response, String fileId) { try {