|
|
|
@ -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)
|
|
|
|
|