change:语法降级

This commit is contained in:
李鹏军 2024-04-24 18:00:02 +08:00
parent 5ab91c3d8c
commit ee35276ee6
4 changed files with 6 additions and 8 deletions

View File

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

View File

@ -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,

View File

@ -53,8 +53,8 @@ public partial class TrackService : ApplicationService, ITrackService
// 新增/更新轨迹
var @event = ObjectMapper.Map<UpsertTrackInput, TrackUpsertEvent>(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);

View File

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