From c5b6cf951b29b7ef9c2b06e36c5b703f09816dc0 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Wed, 19 Jun 2024 16:33:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=AE=9E=E6=97=B6=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E5=88=86=E4=BA=AB=E6=9C=89=E6=95=88=E6=9C=9F=E8=B7=9F?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE=E4=B8=8D=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1042569 --user=陈建星 【测试计划】github#30061,设置测试计划报告分享有效期为30天,从测试计划列表的报告中点击分享链接,第二天访问该链接链接失效 https://www.tapd.cn/55049933/s/1531995 --- .../main/java/io/metersphere/service/ShareInfoService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());