fix(性能测试): 修复删除测试后不能显示监控tab的bug
This commit is contained in:
parent
08c3274379
commit
03ef08e52b
|
@ -345,14 +345,10 @@ public class PerformanceReportService {
|
||||||
|
|
||||||
public String getPoolTypeByReportId(String reportId) {
|
public String getPoolTypeByReportId(String reportId) {
|
||||||
LoadTestReportWithBLOBs report = getReport(reportId);
|
LoadTestReportWithBLOBs report = getReport(reportId);
|
||||||
String testId = report.getTestId();
|
String poolId = report.getTestResourcePoolId();
|
||||||
LoadTestWithBLOBs test = loadTestMapper.selectByPrimaryKey(testId);
|
TestResourcePool testResourcePool = testResourcePoolMapper.selectByPrimaryKey(poolId);
|
||||||
if (test != null) {
|
if (testResourcePool != null) {
|
||||||
String poolId = test.getTestResourcePoolId();
|
return testResourcePool.getType();
|
||||||
TestResourcePool testResourcePool = testResourcePoolMapper.selectByPrimaryKey(poolId);
|
|
||||||
if (testResourcePool != null) {
|
|
||||||
return testResourcePool.getType();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue