From 6f3cf8fa615fccb094134ede81984fca9614c555 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 31 Oct 2022 16:10:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=93=8D=E4=BD=9C=E6=9C=AA=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018661 --user=李玉号 【系统设置】操作日志-项目环境的增删改操作没有日志 https://www.tapd.cn/55049933/s/1283760 --- .../environment/controller/TestEnvironmentController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/TestEnvironmentController.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/TestEnvironmentController.java index f3e503b068..f817e0dc9a 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/TestEnvironmentController.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/TestEnvironmentController.java @@ -68,6 +68,7 @@ public class TestEnvironmentController { } @PostMapping("/add") + @MsAuditLog(module = OperLogModule.PROJECT_ENVIRONMENT_SETTING, type = OperLogConstants.CREATE, title = "#apiTestEnvironmentWithBLOBs.name", project = "#apiTestEnvironmentWithBLOBs.projectId", msClass = BaseEnvironmentService.class) public String create(@RequestPart("request") TestEnvironmentDTO apiTestEnvironmentWithBLOBs, @RequestPart(value = "files", required = false) List sslFiles, @RequestPart(value = "variablesFiles", required = false) List variableFile) { checkParams(apiTestEnvironmentWithBLOBs); return baseEnvironmentService.add(apiTestEnvironmentWithBLOBs, sslFiles, variableFile); @@ -114,6 +115,7 @@ public class TestEnvironmentController { } @GetMapping("/delete/{id}") + @MsAuditLog(module = OperLogModule.PROJECT_ENVIRONMENT_SETTING, type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#id)", msClass = BaseEnvironmentService.class) public void delete(@PathVariable String id) { baseEnvironmentService.delete(id); }