对接前端

This commit is contained in:
xiaolipro 2024-09-12 17:41:39 +08:00
parent 4e334f2869
commit 0d4be31cc1
2 changed files with 4 additions and 3 deletions

View File

@ -93,13 +93,13 @@ public class TrackDeleteEventHandler : ITransientDependency, ICapSubscribe
// 订单循环关联检测
var dup = @event.Visited.Intersect(@event.OrderIds).ToArray();
if (!dup.Any())
if (dup.Any())
{
LogHelper.Warn($"删除轨迹时,发现循环依赖:{dup.JoinAsString(",")}", true);
return false;
}
LogHelper.Warn($"删除轨迹时,发现循环依赖:{dup.JoinAsString(",")}", true);
return false;
return true;
}
private async Task DeleteTrackAsync(TrackDeleteEvent @event)

View File

@ -159,6 +159,7 @@ public class ForewarningHelper
StartTrackStatusId = x.StartTrackStatusId,
EndTrackStatusId = x.EndTrackStatusId,
NotifyMode = x.NotifyModes.JoinAsString(","),
NotifyUser = x.NotifyUsers.JoinAsString(","),
NotifyUserId = x.NotifyUserIds.JoinAsString(","),
}).ToList();
}