fix(性能测试): 删除报告时同时删除相应的jmeter.log
This commit is contained in:
parent
a973ee5052
commit
dad975a78a
|
@ -152,6 +152,11 @@ public class PerformanceReportService {
|
|||
example.createCriteria().andReportIdEqualTo(reportId);
|
||||
loadTestReportDetailMapper.deleteByExample(example);
|
||||
|
||||
// delete load_test_report_log
|
||||
LoadTestReportLogExample loadTestReportLogExample = new LoadTestReportLogExample();
|
||||
loadTestReportLogExample.createCriteria().andReportIdEqualTo(reportId);
|
||||
loadTestReportLogMapper.deleteByExample(loadTestReportLogExample);
|
||||
|
||||
// delete jtl file
|
||||
fileService.deleteFileById(loadTestReport.getFileId());
|
||||
|
||||
|
|
Loading…
Reference in New Issue