From d19071ad1e4172e12e1f9ce7ed75ca3c5f2ea277 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 23 Apr 2024 19:08:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E6=8A=A5=E5=91=8A=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/definition/ApiReportLogService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiReportLogService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiReportLogService.java index d65050789d..3b50354337 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiReportLogService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiReportLogService.java @@ -30,7 +30,7 @@ public class ApiReportLogService { private ApiReportMapper apiReportMapper; - public void deleteLog(String id) { + public LogDTO deleteLog(String id) { ApiReport apiReport = apiReportMapper.selectByPrimaryKey(id); Project project = projectMapper.selectByPrimaryKey(apiReport.getProjectId()); LogDTO dto = new LogDTO( @@ -45,7 +45,7 @@ public class ApiReportLogService { dto.setPath("/api/report/case/delete/" + apiReport.getId()); dto.setMethod(HttpMethodConstants.GET.name()); dto.setOriginalValue(JSON.toJSONBytes(apiReport)); - operationLogService.add(dto); + return dto; } public void updateLog(String id) {