fix(测试跟踪): 测试计划实时报告分享有效期跟应用配置不匹配
--bug=1042569 --user=陈建星 【测试计划】github#30061,设置测试计划报告分享有效期为30天,从测试计划列表的报告中点击分享链接,第二天访问该链接链接失效 https://www.tapd.cn/55049933/s/1531995
This commit is contained in:
parent
6ef9283084
commit
c5b6cf951b
|
@ -102,7 +102,9 @@ public class ShareInfoService {
|
||||||
TestPlanReportContentExample example = new TestPlanReportContentExample();
|
TestPlanReportContentExample example = new TestPlanReportContentExample();
|
||||||
example.createCriteria().andTestPlanReportIdEqualTo(shareInfo.getCustomData());
|
example.createCriteria().andTestPlanReportIdEqualTo(shareInfo.getCustomData());
|
||||||
List<TestPlanReportContentWithBLOBs> testPlanReportContents = testPlanReportContentMapper.selectByExampleWithBLOBs(example);
|
List<TestPlanReportContentWithBLOBs> testPlanReportContents = testPlanReportContentMapper.selectByExampleWithBLOBs(example);
|
||||||
if (!CollectionUtils.isEmpty(testPlanReportContents)) {
|
if (CollectionUtils.isEmpty(testPlanReportContents)) {
|
||||||
|
return testPlanMapper.selectByPrimaryKey(shareInfo.getCustomData());
|
||||||
|
} else {
|
||||||
TestPlanReportContentWithBLOBs testPlanReportContent = testPlanReportContents.get(0);
|
TestPlanReportContentWithBLOBs testPlanReportContent = testPlanReportContents.get(0);
|
||||||
if (testPlanReportContent != null) {
|
if (testPlanReportContent != null) {
|
||||||
TestPlanReport testPlanReport = testPlanReportMapper.selectByPrimaryKey(testPlanReportContent.getTestPlanReportId());
|
TestPlanReport testPlanReport = testPlanReportMapper.selectByPrimaryKey(testPlanReportContent.getTestPlanReportId());
|
||||||
|
|
Loading…
Reference in New Issue