refactor: 兼容表里不同的创建人

This commit is contained in:
Captain.B 2021-08-22 14:05:23 +08:00 committed by 刘瑞斌
parent 3a1bfedf15
commit 4ff79e6611
1 changed files with 3 additions and 3 deletions

View File

@ -135,12 +135,12 @@ public abstract class AbstractNoticeSender implements NoticeSender {
Object createUser = paramMap.get("createUser");
Object userId1 = paramMap.get("userId");
if (creator != null) {
if (userId1 != null) {
toUsers.add(new Receiver(userId1.toString(), NotificationConstants.Type.SYSTEM_NOTICE.name()));
} else if (creator != null) {
toUsers.add(new Receiver(creator.toString(), NotificationConstants.Type.SYSTEM_NOTICE.name()));
} else if (createUser != null) {
toUsers.add(new Receiver(createUser.toString(), NotificationConstants.Type.SYSTEM_NOTICE.name()));
} else if (userId1 != null) {
toUsers.add(new Receiver(userId1.toString(), NotificationConstants.Type.SYSTEM_NOTICE.name()));
}
break;
case NoticeConstants.RelatedUser.MAINTAINER: