From 9d864f676d9add03aad041441bf7a2a514b1310f Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 5 Jul 2024 16:45:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E9=9B=86=E6=88=90?= =?UTF-8?q?=E4=B8=8E=E5=8F=91=E5=B8=83-=E8=B7=A8=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=88=96=E7=A7=9F=E6=88=B7=E5=AF=BC=E5=85=A5=E5=90=8C=E5=90=8D?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=9A=84=E6=B5=81=E6=B0=B4=E7=BA=BF=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1194182708789248]集成与发布-跨系统或租户导入同名系统的流水线异常 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1194182708789248 --- .../deploy/api/apppipeline/ExportDeployAppPipelineApi.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/neatlogic/module/deploy/api/apppipeline/ExportDeployAppPipelineApi.java b/src/main/java/neatlogic/module/deploy/api/apppipeline/ExportDeployAppPipelineApi.java index a276918a..d2629fb6 100644 --- a/src/main/java/neatlogic/module/deploy/api/apppipeline/ExportDeployAppPipelineApi.java +++ b/src/main/java/neatlogic/module/deploy/api/apppipeline/ExportDeployAppPipelineApi.java @@ -82,6 +82,12 @@ public class ExportDeployAppPipelineApi extends PrivateBinaryStreamApiComponentB if (!importExportHandler.checkExportAuth(appSystemId)) { throw new ExportNoAuthException(); } + // 先检查导出对象及依赖对象有没有找不到数据,如果有就抛异常 + { + List dependencyBaseInfoList = new ArrayList<>(); + dependencyBaseInfoList.add(new ImportExportBaseInfoVo(DeployImportExportHandlerType.APP_PIPELINE.getValue(), appSystemId)); + ImportExportVo importExportVo = importExportHandler.exportData(appSystemId, dependencyBaseInfoList, null); + } String fileName = FileUtil.getEncodedFileName("appSystem_" + appSystem.getAbbrName()+ "(" + appSystem.getName() + ")" + ".pak"); response.setContentType("application/vnd.ms-excel;charset=utf-8"); response.setHeader("Content-Disposition", " attachment; filename=\"" + fileName + "\""); -- Gitee