diff --git a/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs b/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs index a1d373f0..a1eea9ae 100644 --- a/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs +++ b/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs @@ -89,12 +89,6 @@ public partial class TrackService : ApplicationService, ITrackService var tracks = await _trackDetailsEsRepository.GetListAsync(new[] { order.Id }, input.TrackCode, true); - //轨迹内容不允许重复,并且已经存在了轨迹记录 - if (input.IsAdd && !trackContent.IsRepeatable && tracks.Count >= 1) - { - throw new BusinessException(message: $"轨迹代码:{input.TrackCode}不允许重复添加"); - } - //更新轨迹,但存在多条轨迹记录,理由:不清晰到底要修改哪一条或是全部修改 if (!input.IsAdd && tracks.Count > 1) { @@ -324,12 +318,6 @@ public partial class TrackService : ApplicationService, ITrackService var tracks = await _trackDetailsEsRepository.GetListAsync(new[] { order.Id }, input.TrackCode, true); - //轨迹内容不允许重复,并且已经存在了轨迹记录 - if (input.IsAdd && !trackContent.IsRepeatable && tracks.Count >= 1) - { - throw new BusinessException(message: $"轨迹代码:{input.TrackCode}不允许重复添加"); - } - //更新轨迹,存在多条轨迹记录不允许更改,理由:不清晰到底要修改哪一条或是全部修改 if (!input.IsAdd && tracks.Count > 1) {