diff --git a/backend/src/main/java/io/metersphere/notice/service/NoticeService.java b/backend/src/main/java/io/metersphere/notice/service/NoticeService.java index af3257e0cc..0ea8427b8e 100644 --- a/backend/src/main/java/io/metersphere/notice/service/NoticeService.java +++ b/backend/src/main/java/io/metersphere/notice/service/NoticeService.java @@ -51,7 +51,7 @@ public class NoticeService { long time = System.currentTimeMillis(); String identification = UUID.randomUUID().toString(); list.getUserIds().forEach(m -> { - checkUserIdExist(m, list); + checkUserIdExist(m, list,orgId); MessageTask message = new MessageTask(); message.setId(UUID.randomUUID().toString()); message.setEvent(list.getEvent()); @@ -68,9 +68,9 @@ public class NoticeService { }); } - private void checkUserIdExist(String userId, MessageDetail list) { + private void checkUserIdExist(String userId, MessageDetail list,String orgId) { MessageTaskExample example = new MessageTaskExample(); - example.createCriteria().andUserIdEqualTo(userId).andEventEqualTo(list.getEvent()).andTypeEqualTo(list.getType()).andTaskTypeEqualTo(list.getTaskType()).andWebhookEqualTo(list.getWebhook()); + example.createCriteria().andUserIdEqualTo(userId).andEventEqualTo(list.getEvent()).andTypeEqualTo(list.getType()).andTaskTypeEqualTo(list.getTaskType()).andWebhookEqualTo(list.getWebhook()).andTestIdEqualTo(list.getTestId()).andOrganizationIdEqualTo(orgId); if (messageTaskMapper.countByExample(example) > 0) { MSException.throwException(Translator.get("message_task_already_exists")); } @@ -151,4 +151,4 @@ public class NoticeService { example.createCriteria().andIdentificationEqualTo(identification); return messageTaskMapper.deleteByExample(example); } -} \ No newline at end of file +} diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index 57d6f78efa..bb494fc68a 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit 57d6f78efa4b0300be188e8b024511ceef0873ed +Subproject commit bb494fc68a2367359c9048fa7250c7618de4afb6 diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 71d57ae5d7..8a972a1987 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 71d57ae5d7f8bb5c93a29504ac6f2300dc189ce9 +Subproject commit 8a972a198775b3783ed6e4cef27197e53d1ebdc8