From 811b38c38da9668371fd4b4ade2280e469503a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=BE=99=20=E7=8E=8B?= Date: Mon, 18 Nov 2024 14:50:28 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=A7=A3=E9=99=A4=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=BD=A8=E8=BF=B9=E5=AF=B9=E4=B8=8D=E5=85=81=E8=AE=B8=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=9A=84=E8=BD=A8=E8=BF=B9=E5=86=85=E5=AE=B9=E7=9A=84?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/ProvideServices/TrackService.cs | 12 ------------ 1 file changed, 12 deletions(-) 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) {