ReceiveBcInfo时保存文件信息

master
zhangxiaofeng 8 months ago
parent 85ff81d315
commit 1a1ddf6591

@ -12008,9 +12008,29 @@ namespace Myshipping.Application
foreach (var item in list) foreach (var item in list)
{ {
// 保存日志
var oldOrder = oldOrderList.FirstOrDefault(x => x.Id == item.Id); var oldOrder = oldOrderList.FirstOrDefault(x => x.Id == item.Id);
await SaveLog(item, oldOrder, "接收BC后更新订舱"); 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) if (App.Configuration["RunType"] == CommonConst.RUN_TYPE_DJY)

Loading…
Cancel
Save