解决模板code更新丢失问题
This commit is contained in:
parent
a6eddbdbd9
commit
847c9fbbe6
@ -1,6 +1,6 @@
|
||||
{
|
||||
"Configuration": {
|
||||
"UseLocalConfiguration": false,
|
||||
"UseLocalConfiguration": true,
|
||||
//是否使用本地配置文件
|
||||
"ConfiguraFileName": "appsettings.Development.json",
|
||||
//指定配置文件名称,开启UseLocalConfiguration时生效
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
|
||||
|
||||
@ -76,6 +76,12 @@ public class UpdateOrderInput : OrderNoInfo
|
||||
/// 订单航班信息
|
||||
/// </summary>
|
||||
public List<OrderFlightInfo> FlightInfos { get; set; } = new();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 模板code
|
||||
/// </summary>
|
||||
public List<string> TemplateCodes { get; set; }
|
||||
}
|
||||
|
||||
public class PullConfigInfo
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
|
||||
|
||||
@ -9,11 +9,6 @@ public class UpsertOrderInput : UpdateOrderInput
|
||||
/// </summary>
|
||||
public int CustomId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板code
|
||||
/// </summary>
|
||||
public List<string> TemplateCodes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前操作人
|
||||
/// </summary>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
using DotNetCore.CAP;
|
||||
using DotNetCore.CAP;
|
||||
using SJZY.Expand.ABP.Core.PublicMethords;
|
||||
using SJZY.Track.Application.Contract.Dtos.ProvideServices;
|
||||
using SJZY.Track.Application.Contract.Services.ProvideServices;
|
||||
@ -131,6 +131,7 @@ public partial class OrderService : ApplicationService, IOrderService
|
||||
order.OrderFlights = ObjectMapper.Map<List<OrderFlightInfo>, List<OrderFlightEntity>>(input.FlightInfos);
|
||||
order.OrderPullStatus = BuiltOrderPullStatus(input.PullConfigInfos);
|
||||
order.OrderPlatformNumbers = BuiltOrderPlatformNumbers(input.PullConfigInfos);
|
||||
order.TemplateCodes = string.Join(',', input.TemplateCodes);
|
||||
await _orderRepository.UpdateOrderAsync(order);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user