From 1a1ddf6591a7c1333d96af0bb231a237d90dd4d7 Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Sun, 7 Apr 2024 13:32:14 +0800 Subject: [PATCH] =?UTF-8?q?ReceiveBcInfo=E6=97=B6=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingOrder/BookingOrderService.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 9613d4e9..47dd487b 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -12008,9 +12008,29 @@ namespace Myshipping.Application foreach (var item in list) { + // 保存日志 var oldOrder = oldOrderList.FirstOrDefault(x => x.Id == item.Id); await SaveLog(item, oldOrder, "接收BC后更新订舱"); + if (input.Files != null) + { + // 保存文件 + foreach (var fileItem in input.Files) + { + var insFile = new BookingFile() + { + BookingId = item.Id, + FileName = fileItem.FileName, + FilePath = fileItem.FilePath, + TypeCode = fileItem.FileType, + TypeName = fileItem.FileType switch { "BC" => "BC", _ => "未定义" }, + TenantId = item.TenantId, + TenantName = item.TenantName + }; + await _bookingfile.InsertAsync(insFile); + } + } + // 客户订舱:运营端发送订舱数据给客户端 if (App.Configuration["RunType"] == CommonConst.RUN_TYPE_DJY)