解决模板code更新丢失问题

This commit is contained in:
eli 2024-12-03 11:13:11 +08:00
parent a6eddbdbd9
commit 847c9fbbe6
4 changed files with 11 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"Configuration": { "Configuration": {
"UseLocalConfiguration": false, "UseLocalConfiguration": true,
//是否使用本地配置文件 //是否使用本地配置文件
"ConfiguraFileName": "appsettings.Development.json", "ConfiguraFileName": "appsettings.Development.json",
//指定配置文件名称,开启UseLocalConfiguration时生效 //指定配置文件名称,开启UseLocalConfiguration时生效

View File

@ -1,4 +1,4 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace SJZY.Track.Application.Contract.Dtos.ProvideServices; namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
@ -76,6 +76,12 @@ public class UpdateOrderInput : OrderNoInfo
/// 订单航班信息 /// 订单航班信息
/// </summary> /// </summary>
public List<OrderFlightInfo> FlightInfos { get; set; } = new(); public List<OrderFlightInfo> FlightInfos { get; set; } = new();
/// <summary>
/// 模板code
/// </summary>
public List<string> TemplateCodes { get; set; }
} }
public class PullConfigInfo public class PullConfigInfo

View File

@ -1,4 +1,4 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace SJZY.Track.Application.Contract.Dtos.ProvideServices; namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
@ -9,11 +9,6 @@ public class UpsertOrderInput : UpdateOrderInput
/// </summary> /// </summary>
public int CustomId { get; set; } public int CustomId { get; set; }
/// <summary>
/// 模板code
/// </summary>
public List<string> TemplateCodes { get; set; }
/// <summary> /// <summary>
/// 当前操作人 /// 当前操作人
/// </summary> /// </summary>

View File

@ -1,4 +1,4 @@
using DotNetCore.CAP; using DotNetCore.CAP;
using SJZY.Expand.ABP.Core.PublicMethords; using SJZY.Expand.ABP.Core.PublicMethords;
using SJZY.Track.Application.Contract.Dtos.ProvideServices; using SJZY.Track.Application.Contract.Dtos.ProvideServices;
using SJZY.Track.Application.Contract.Services.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.OrderFlights = ObjectMapper.Map<List<OrderFlightInfo>, List<OrderFlightEntity>>(input.FlightInfos);
order.OrderPullStatus = BuiltOrderPullStatus(input.PullConfigInfos); order.OrderPullStatus = BuiltOrderPullStatus(input.PullConfigInfos);
order.OrderPlatformNumbers = BuiltOrderPlatformNumbers(input.PullConfigInfos); order.OrderPlatformNumbers = BuiltOrderPlatformNumbers(input.PullConfigInfos);
order.TemplateCodes = string.Join(',', input.TemplateCodes);
await _orderRepository.UpdateOrderAsync(order); await _orderRepository.UpdateOrderAsync(order);
} }