refactor(性能测试): 性能测试重构
This commit is contained in:
parent
d0ffcdc053
commit
35ac66b928
|
@ -59,6 +59,8 @@ public class PerformanceReportService {
|
||||||
@Resource
|
@Resource
|
||||||
private LoadTestReportResultMapper loadTestReportResultMapper;
|
private LoadTestReportResultMapper loadTestReportResultMapper;
|
||||||
@Resource
|
@Resource
|
||||||
|
private LoadTestReportResultPartMapper loadTestReportResultPartMapper;
|
||||||
|
@Resource
|
||||||
private LoadTestReportLogMapper loadTestReportLogMapper;
|
private LoadTestReportLogMapper loadTestReportLogMapper;
|
||||||
@Resource
|
@Resource
|
||||||
private TestResourceService testResourceService;
|
private TestResourceService testResourceService;
|
||||||
|
@ -123,6 +125,11 @@ public class PerformanceReportService {
|
||||||
loadTestReportResultExample.createCriteria().andReportIdEqualTo(reportId);
|
loadTestReportResultExample.createCriteria().andReportIdEqualTo(reportId);
|
||||||
loadTestReportResultMapper.deleteByExample(loadTestReportResultExample);
|
loadTestReportResultMapper.deleteByExample(loadTestReportResultExample);
|
||||||
|
|
||||||
|
// delete load_test_report_result
|
||||||
|
LoadTestReportResultPartExample loadTestReportResultPartExample = new LoadTestReportResultPartExample();
|
||||||
|
loadTestReportResultPartExample.createCriteria().andReportIdEqualTo(reportId);
|
||||||
|
loadTestReportResultPartMapper.deleteByExample(loadTestReportResultPartExample);
|
||||||
|
|
||||||
// delete load_test_report_detail
|
// delete load_test_report_detail
|
||||||
LoadTestReportDetailExample example = new LoadTestReportDetailExample();
|
LoadTestReportDetailExample example = new LoadTestReportDetailExample();
|
||||||
example.createCriteria().andReportIdEqualTo(reportId);
|
example.createCriteria().andReportIdEqualTo(reportId);
|
||||||
|
|
Loading…
Reference in New Issue