diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml
index 9718a5d5dd..3b6e5a6b33 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml
@@ -43,7 +43,7 @@
where project_id = #{projectId} and platform != 'Local';
diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java
index ea41f5a3c1..92108450d5 100644
--- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java
+++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java
@@ -1460,21 +1460,23 @@ public class TestPlanService {
allCases.forEach(item -> {
LoadCaseReportRequest request = new LoadCaseReportRequest();
String reportId = item.getLoadReportId();
- request.setTestPlanLoadCaseId(item.getId());
- request.setReportId(reportId);
- Boolean existReport = testPlanLoadCaseService.isExistReport(request);
- if (existReport) {
- LoadTestReportWithBLOBs loadTestReport = performanceReportService.getLoadTestReport(reportId);
- ReportTimeInfo reportTimeInfo = performanceReportService.getReportTimeInfo(reportId);
- TestPlanLoadCaseDTO.ReportDTO reportDTO = new TestPlanLoadCaseDTO.ReportDTO();
- if (loadTestReport != null) {
- BeanUtils.copyBean(reportDTO, loadTestReport);
+ if (StringUtils.isNotBlank(reportId)) {
+ request.setTestPlanLoadCaseId(item.getId());
+ request.setReportId(reportId);
+ Boolean existReport = testPlanLoadCaseService.isExistReport(request);
+ if (existReport) {
+ LoadTestReportWithBLOBs loadTestReport = performanceReportService.getLoadTestReport(reportId);
+ ReportTimeInfo reportTimeInfo = performanceReportService.getReportTimeInfo(reportId);
+ TestPlanLoadCaseDTO.ReportDTO reportDTO = new TestPlanLoadCaseDTO.ReportDTO();
+ if (loadTestReport != null) {
+ BeanUtils.copyBean(reportDTO, loadTestReport);
+ }
+ if (reportTimeInfo != null) {
+ BeanUtils.copyBean(reportDTO, reportTimeInfo);
+ }
+ item.setResponse(reportDTO);
+ // todo 报告详情
}
- if (reportTimeInfo != null) {
- BeanUtils.copyBean(reportDTO, reportTimeInfo);
- }
- item.setResponse(reportDTO);
- // todo 报告详情
}
});
}
diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportButtons.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportButtons.vue
index 2e0ba4ea9d..ab06a3b4e5 100644
--- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportButtons.vue
+++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportButtons.vue
@@ -16,7 +16,7 @@
-
+
{{'保存'}}