diff --git a/src/SJZY.Track.Application/Services/Warning/Handlers/CompleteWarningHandler.cs b/src/SJZY.Track.Application/Services/Warning/Handlers/CompleteWarningHandler.cs index b9a60249..59cd1912 100644 --- a/src/SJZY.Track.Application/Services/Warning/Handlers/CompleteWarningHandler.cs +++ b/src/SJZY.Track.Application/Services/Warning/Handlers/CompleteWarningHandler.cs @@ -405,7 +405,7 @@ public sealed class CompleteWarningHandler : ICompleteWarningHandler, ITransient // 通知对象 var oldNotifyUserIds = oldRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); - var postNotifyUserIds = oldRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); + var postNotifyUserIds = postRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); var hasChange = !oldTypes.SetEquals(postTypes) || !oldStatusIds.SetEquals(postStatusIds) || !oldNotifyUserIds.SetEquals(postNotifyUserIds); return (false, hasChange); } diff --git a/src/SJZY.Track.Application/Services/Warning/Handlers/ReturnWarningHandler.cs b/src/SJZY.Track.Application/Services/Warning/Handlers/ReturnWarningHandler.cs index 476d4a36..e44d1b99 100644 --- a/src/SJZY.Track.Application/Services/Warning/Handlers/ReturnWarningHandler.cs +++ b/src/SJZY.Track.Application/Services/Warning/Handlers/ReturnWarningHandler.cs @@ -616,7 +616,7 @@ public sealed class ReturnWarningHandler : IReturnWarningHandler, ITransientDepe // 通知对象 var oldNotifyUserIds = oldRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); - var postNotifyUserIds = oldRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); + var postNotifyUserIds = postRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); var hasChange = !oldStatusIds.SetEquals(postStatusIds) || !oldNotifyUserIds.SetEquals(postNotifyUserIds); return (false, hasChange); } diff --git a/src/SJZY.Track.Application/Services/Warning/Handlers/TransportWarningHandler.cs b/src/SJZY.Track.Application/Services/Warning/Handlers/TransportWarningHandler.cs index 1c415b09..b5b9bfd2 100644 --- a/src/SJZY.Track.Application/Services/Warning/Handlers/TransportWarningHandler.cs +++ b/src/SJZY.Track.Application/Services/Warning/Handlers/TransportWarningHandler.cs @@ -996,7 +996,7 @@ public class TransportWarningHandler : ITransportWarningHandler, ITransientDepen // 通知对象 var oldNotifyUserIds = oldRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); - var postNotifyUserIds = oldRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); + var postNotifyUserIds = postRule.NotifyUsers.Select(x => x.UserId).ToHashSet(); var hasChange = !oldNotifyUserIds.SetEquals(postNotifyUserIds); return (false, hasChange); }