From ee35276ee6309ef3d9161f21cd7071f513ab22e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=86=9B?= <2357729423@qq.com> Date: Wed, 24 Apr 2024 18:00:02 +0800 Subject: [PATCH] =?UTF-8?q?change=EF=BC=9A=E8=AF=AD=E6=B3=95=E9=99=8D?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.props | 1 - .../EventHandlers/TrackRefreshEventHandler.cs | 6 +++--- .../Services/ProvideServices/TrackService.cs | 6 +++--- src/SJZY.Track.Repository/SJZY.Track.Repository.csproj | 1 - 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/common.props b/common.props index 492bcb09..f66ce331 100644 --- a/common.props +++ b/common.props @@ -1,6 +1,5 @@ - latest enable enable $(NoWarn);CS1591;CS0436;NU1803 diff --git a/src/SJZY.Track.Application/EventHandlers/TrackRefreshEventHandler.cs b/src/SJZY.Track.Application/EventHandlers/TrackRefreshEventHandler.cs index ea34f0e6..0e9fd334 100644 --- a/src/SJZY.Track.Application/EventHandlers/TrackRefreshEventHandler.cs +++ b/src/SJZY.Track.Application/EventHandlers/TrackRefreshEventHandler.cs @@ -223,8 +223,8 @@ public class TrackRefreshEventHandler : ITransientDependency, ICapSubscribe // 新增/更新轨迹 var trackUpsertEvent = new TrackUpsertEvent { - OrderIdentifiers = - [ + OrderIdentifiers = new[] + { new OrderIdentifier { OrderId = context.OrderId, @@ -232,7 +232,7 @@ public class TrackRefreshEventHandler : ITransientDependency, ICapSubscribe OrderType = context.OrderType, CustomId = context.CustomId } - ], + }, TrackRefreshData = new TrackRefreshStruct { ServiceProviderName = context.ServiceProviderName, diff --git a/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs b/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs index 2b820625..6c5d81ba 100644 --- a/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs +++ b/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs @@ -53,8 +53,8 @@ public partial class TrackService : ApplicationService, ITrackService // 新增/更新轨迹 var @event = ObjectMapper.Map(input); @event.SubSystemId = order.SubSystemId; - @event.OrderIdentifiers = - [ + @event.OrderIdentifiers = new[] + { new OrderIdentifier { OrderId = order.Id, @@ -62,7 +62,7 @@ public partial class TrackService : ApplicationService, ITrackService OrderType = order.OrderType, CustomId = order.CustomId } - ]; + }; @event.OperationMan = CurrentUserRequest.CurrentUser.Name; await _capPublisher.PublishAsync(GlobalConst.TrackUpsertSubscribe, @event); return new UnifyResultDto(true, true); diff --git a/src/SJZY.Track.Repository/SJZY.Track.Repository.csproj b/src/SJZY.Track.Repository/SJZY.Track.Repository.csproj index b2285e0b..d8cf6950 100644 --- a/src/SJZY.Track.Repository/SJZY.Track.Repository.csproj +++ b/src/SJZY.Track.Repository/SJZY.Track.Repository.csproj @@ -3,7 +3,6 @@ net7.0 True - preview