diff --git a/test-track/backend/src/main/java/io/metersphere/service/ShareInfoService.java b/test-track/backend/src/main/java/io/metersphere/service/ShareInfoService.java index 7f54dd37e5..28244774c0 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/ShareInfoService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/ShareInfoService.java @@ -102,7 +102,9 @@ public class ShareInfoService { TestPlanReportContentExample example = new TestPlanReportContentExample(); example.createCriteria().andTestPlanReportIdEqualTo(shareInfo.getCustomData()); List testPlanReportContents = testPlanReportContentMapper.selectByExampleWithBLOBs(example); - if (!CollectionUtils.isEmpty(testPlanReportContents)) { + if (CollectionUtils.isEmpty(testPlanReportContents)) { + return testPlanMapper.selectByPrimaryKey(shareInfo.getCustomData()); + } else { TestPlanReportContentWithBLOBs testPlanReportContent = testPlanReportContents.get(0); if (testPlanReportContent != null) { TestPlanReport testPlanReport = testPlanReportMapper.selectByPrimaryKey(testPlanReportContent.getTestPlanReportId());