From b9052ca787cb142ea456b6aa9580f9d562b81435 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Fri, 27 Nov 2020 16:28:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E6=97=B6?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9B=B8=E5=85=B3=E7=9A=84jtl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/performance/service/ReportService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/java/io/metersphere/performance/service/ReportService.java b/backend/src/main/java/io/metersphere/performance/service/ReportService.java index 3bc2fabaf6..1e6cc8b353 100644 --- a/backend/src/main/java/io/metersphere/performance/service/ReportService.java +++ b/backend/src/main/java/io/metersphere/performance/service/ReportService.java @@ -105,6 +105,9 @@ public class ReportService { example.createCriteria().andReportIdEqualTo(reportId); loadTestReportDetailMapper.deleteByExample(example); + // delete jtl file + fileService.deleteFileById(loadTestReport.getFileId()); + loadTestReportMapper.deleteByPrimaryKey(reportId); }