refactor(性能测试): 性能测试重构

This commit is contained in:
Captain.B 2021-08-03 14:23:58 +08:00 committed by 刘瑞斌
parent d0ffcdc053
commit 35ac66b928
1 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,8 @@ public class PerformanceReportService {
@Resource
private LoadTestReportResultMapper loadTestReportResultMapper;
@Resource
private LoadTestReportResultPartMapper loadTestReportResultPartMapper;
@Resource
private LoadTestReportLogMapper loadTestReportLogMapper;
@Resource
private TestResourceService testResourceService;
@ -123,6 +125,11 @@ public class PerformanceReportService {
loadTestReportResultExample.createCriteria().andReportIdEqualTo(reportId);
loadTestReportResultMapper.deleteByExample(loadTestReportResultExample);
// delete load_test_report_result
LoadTestReportResultPartExample loadTestReportResultPartExample = new LoadTestReportResultPartExample();
loadTestReportResultPartExample.createCriteria().andReportIdEqualTo(reportId);
loadTestReportResultPartMapper.deleteByExample(loadTestReportResultPartExample);
// delete load_test_report_detail
LoadTestReportDetailExample example = new LoadTestReportDetailExample();
example.createCriteria().andReportIdEqualTo(reportId);