fix: 修复轨迹code+轨迹发生时间允许重复的bug

This commit is contained in:
hardstylewyl 2024-12-30 15:45:44 +08:00
parent 6e0ff29614
commit c92351a601

View File

@ -271,9 +271,9 @@ public class TrackUpsertEventHandler : ITransientDependency, ICapSubscribe
//覆盖场景:B,C
if (trackContent.IsRepeatable && existTracks.Length >= 1)
{
if (existTracks.Any(x => x.TrackPlace == @event.TrackPlace && x.TrackTime == @event.TrackTime))
if (existTracks.Any(x => x.TrackTime == @event.TrackTime))
{
//允许重复,出现【轨迹发生地】,【轨迹发生时间】的都重复,则不允许新增
//TrackCode TrackTime联合不能重复
continue;
}