diff --git a/backend/src/main/java/io/metersphere/service/ReportService.java b/backend/src/main/java/io/metersphere/service/ReportService.java index 76145cfced..c0723922ea 100644 --- a/backend/src/main/java/io/metersphere/service/ReportService.java +++ b/backend/src/main/java/io/metersphere/service/ReportService.java @@ -2,6 +2,7 @@ package io.metersphere.service; import io.metersphere.base.domain.LoadTestReport; import io.metersphere.base.domain.LoadTestReportExample; +import io.metersphere.base.domain.LoadTestReportWithBLOBs; import io.metersphere.base.mapper.LoadTestReportMapper; import io.metersphere.base.mapper.ext.ExtLoadTestReportMapper; import io.metersphere.controller.request.ReportRequest; @@ -48,28 +49,28 @@ public class ReportService { } public RequestStatisticsDTO getReport(String id) { - LoadTestReport loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); + LoadTestReportWithBLOBs loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); String content = loadTestReport.getContent(); RequestStatisticsDTO requestStatistics = JtlResolver.getRequestStatistics(content); return requestStatistics; } public List getReportErrors(String id) { - LoadTestReport loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); + LoadTestReportWithBLOBs loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); String content = loadTestReport.getContent(); List errors = JtlResolver.getErrorsList(content); return errors; } public ErrorsTop5DTO getReportErrorsTOP5(String id) { - LoadTestReport loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); + LoadTestReportWithBLOBs loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); String content = loadTestReport.getContent(); ErrorsTop5DTO errors = JtlResolver.getErrorsTop5DTO(content); return errors; } public TestOverview getTestOverview(String id) { - LoadTestReport loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); + LoadTestReportWithBLOBs loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); String content = loadTestReport.getContent(); TestOverview testOverview = JtlResolver.getTestOverview(content); return testOverview;