From b5911dfdaa4510fb573e450fda6aa5fbb6aac9ec Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 24 Aug 2021 16:36:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A4=84=E7=90=86=E8=AF=84?= =?UTF-8?q?=E5=AE=A1=E4=BA=BA=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/commons/constants/NoticeConstants.java | 2 +- .../io/metersphere/notice/sender/AbstractNoticeSender.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/commons/constants/NoticeConstants.java b/backend/src/main/java/io/metersphere/commons/constants/NoticeConstants.java index 0ff9dc3b0c..fd1bf96d9d 100644 --- a/backend/src/main/java/io/metersphere/commons/constants/NoticeConstants.java +++ b/backend/src/main/java/io/metersphere/commons/constants/NoticeConstants.java @@ -56,6 +56,6 @@ public interface NoticeConstants { String EXECUTOR = "EXECUTOR";//负责人(评审人) String MAINTAINER = "MAINTAINER";//维护人 String FOLLOW_PEOPLE = "FOLLOW_PEOPLE";//关注人 - String PROCESSOR = "PROCESSOR";//关注人 + String PROCESSOR = "PROCESSOR";//处理人 } } diff --git a/backend/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java index 1c2a37953b..0e6e9cfecc 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java @@ -126,7 +126,7 @@ public abstract class AbstractNoticeSender implements NoticeSender { switch (userId) { case NoticeConstants.RelatedUser.EXECUTOR: if (StringUtils.equals(NoticeConstants.Event.CREATE, event)) { - List relatedUsers = noticeModel.getRelatedUsers(); + List relatedUsers = (List) paramMap.get("userIds"); List receivers = relatedUsers.stream() .map(u -> new Receiver(u, NotificationConstants.Type.SYSTEM_NOTICE.name())) .collect(Collectors.toList()); @@ -151,7 +151,7 @@ public abstract class AbstractNoticeSender implements NoticeSender { break; case NoticeConstants.RelatedUser.MAINTAINER: if (StringUtils.equals(NoticeConstants.Event.COMMENT, event)) { - List relatedUsers = noticeModel.getRelatedUsers(); + List relatedUsers = (List) paramMap.get("userIds"); List receivers = relatedUsers.stream() .map(u -> new Receiver(u, NotificationConstants.Type.SYSTEM_NOTICE.name())) .collect(Collectors.toList());