fix: 修复轨迹code+轨迹发生时间允许重复的bug
This commit is contained in:
parent
6e0ff29614
commit
c92351a601
@ -271,9 +271,9 @@ public class TrackUpsertEventHandler : ITransientDependency, ICapSubscribe
|
|||||||
//覆盖场景:B,C
|
//覆盖场景:B,C
|
||||||
if (trackContent.IsRepeatable && existTracks.Length >= 1)
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user