fix(性能测试): 删除报告时同时删除相应的jmeter.log

This commit is contained in:
CaptainB 2022-05-13 15:54:54 +08:00 committed by f2c-ci-robot[bot]
parent f3e1c10b04
commit 4e57dc9dc5
1 changed files with 5 additions and 0 deletions

View File

@ -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());