fix(性能测试): 删除报告时同时删除相应的jmeter.log
This commit is contained in:
parent
f3e1c10b04
commit
4e57dc9dc5
|
@ -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