change:语法降级
This commit is contained in:
parent
5ab91c3d8c
commit
ee35276ee6
@ -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>
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user