From f6df830ce4242737b01d5904773d75d150c19770 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 22 Apr 2024 20:06:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8F=8A=E6=81=A2=E5=A4=8D=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E5=8F=98=E6=9B=B4=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/bug/service/BugLogService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java index f7609dfaef..cb9b36922d 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java @@ -75,6 +75,7 @@ public class BugLogService { Bug bug = bugMapper.selectByPrimaryKey(id); if (bug != null) { LogDTO dto = new LogDTO(bug.getProjectId(), null, bug.getId(), null, OperationLogType.DELETE.name(), OperationLogModule.BUG_MANAGEMENT_INDEX, bug.getTitle()); + dto.setHistory(true); dto.setPath("/bug/delete"); dto.setMethod(HttpMethodConstants.GET.name()); dto.setOriginalValue(JSON.toJSONBytes(bug)); @@ -93,6 +94,7 @@ public class BugLogService { Bug bug = bugMapper.selectByPrimaryKey(id); if (bug != null) { LogDTO dto = new LogDTO(bug.getProjectId(), null, bug.getId(), null, OperationLogType.RECOVER.name(), OperationLogModule.BUG_MANAGEMENT_RECYCLE, bug.getTitle()); + dto.setHistory(true); dto.setPath("/bug/trash/recover"); dto.setMethod(HttpMethodConstants.GET.name()); dto.setOriginalValue(JSON.toJSONBytes(bug));