Merge branch 'refs/heads/S03-轨迹中台优化项' into dev

This commit is contained in:
李鹏军 2024-04-24 18:00:22 +08:00
commit df7fc05dcb
4 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,5 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<NoWarn>$(NoWarn);CS1591;CS0436;NU1803</NoWarn> <NoWarn>$(NoWarn);CS1591;CS0436;NU1803</NoWarn>

View File

@ -223,8 +223,8 @@ public class TrackRefreshEventHandler : ITransientDependency, ICapSubscribe
// 新增/更新轨迹 // 新增/更新轨迹
var trackUpsertEvent = new TrackUpsertEvent var trackUpsertEvent = new TrackUpsertEvent
{ {
OrderIdentifiers = OrderIdentifiers = new[]
[ {
new OrderIdentifier new OrderIdentifier
{ {
OrderId = context.OrderId, OrderId = context.OrderId,
@ -232,7 +232,7 @@ public class TrackRefreshEventHandler : ITransientDependency, ICapSubscribe
OrderType = context.OrderType, OrderType = context.OrderType,
CustomId = context.CustomId CustomId = context.CustomId
} }
], },
TrackRefreshData = new TrackRefreshStruct TrackRefreshData = new TrackRefreshStruct
{ {
ServiceProviderName = context.ServiceProviderName, ServiceProviderName = context.ServiceProviderName,

View File

@ -53,8 +53,8 @@ public partial class TrackService : ApplicationService, ITrackService
// 新增/更新轨迹 // 新增/更新轨迹
var @event = ObjectMapper.Map<UpsertTrackInput, TrackUpsertEvent>(input); var @event = ObjectMapper.Map<UpsertTrackInput, TrackUpsertEvent>(input);
@event.SubSystemId = order.SubSystemId; @event.SubSystemId = order.SubSystemId;
@event.OrderIdentifiers = @event.OrderIdentifiers = new[]
[ {
new OrderIdentifier new OrderIdentifier
{ {
OrderId = order.Id, OrderId = order.Id,
@ -62,7 +62,7 @@ public partial class TrackService : ApplicationService, ITrackService
OrderType = order.OrderType, OrderType = order.OrderType,
CustomId = order.CustomId CustomId = order.CustomId
} }
]; };
@event.OperationMan = CurrentUserRequest.CurrentUser.Name; @event.OperationMan = CurrentUserRequest.CurrentUser.Name;
await _capPublisher.PublishAsync(GlobalConst.TrackUpsertSubscribe, @event); await _capPublisher.PublishAsync(GlobalConst.TrackUpsertSubscribe, @event);
return new UnifyResultDto(true, true); return new UnifyResultDto(true, true);

View File

@ -3,7 +3,6 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<GenerateDocumentationFile>True</GenerateDocumentationFile> <GenerateDocumentationFile>True</GenerateDocumentationFile>
<LangVersion>preview</LangVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>