From 7dcc7de2ed6a4a5b566ca8103cda1ed740b93be5 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 24 Aug 2021 19:59:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/notice/sender/SendNoticeAspect.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/backend/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java b/backend/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java index 013318eff3..42c125111e 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java +++ b/backend/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java @@ -160,12 +160,15 @@ public class SendNoticeAspect { String operation = ""; switch (sendNotice.event()) { case NoticeConstants.Event.CREATE: + case NoticeConstants.Event.CASE_CREATE: operation = "创建了"; break; case NoticeConstants.Event.UPDATE: + case NoticeConstants.Event.CASE_UPDATE: operation = "更新了"; break; case NoticeConstants.Event.DELETE: + case NoticeConstants.Event.CASE_DELETE: operation = "删除了"; break; case NoticeConstants.Event.COMMENT: @@ -177,15 +180,6 @@ public class SendNoticeAspect { case NoticeConstants.Event.CLOSE_SCHEDULE: operation = "关闭了定时任务"; break; - case NoticeConstants.Event.CASE_CREATE: - operation = "创建了接口用例"; - break; - case NoticeConstants.Event.CASE_UPDATE: - operation = "更新了接口用例"; - break; - case NoticeConstants.Event.CASE_DELETE: - operation = "删除了接口用例"; - break; default: break; }