|
|
|
@ -2038,15 +2038,30 @@ namespace Myshipping.Application
|
|
|
|
|
_logger.LogWarning($"保存请求[{reqId}],{(input.Id == 0 ? "新增" : "更新")}数据完成");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Id = entity.Id;
|
|
|
|
|
BookingOrderOutput ordOut = new BookingOrderOutput();
|
|
|
|
|
var main = await _rep.AsQueryable().Filter(null, true).FirstAsync(u => u.Id == Id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 【引入舱位】:保存引用信息
|
|
|
|
|
if (input.Slots?.Any() == true)
|
|
|
|
|
{
|
|
|
|
|
await bookingSlotService.ImportSlots(input.Slots, entity.Id, false);
|
|
|
|
|
var generateDto = new BookingGenerateDto()
|
|
|
|
|
{
|
|
|
|
|
CustomerId = main.CUSTOMERID,
|
|
|
|
|
CustomerName = main.CUSTOMERNAME,
|
|
|
|
|
//CustServiceId = main.CUSTSERVICEID,
|
|
|
|
|
CustServiceName = main.CUSTSERVICE,
|
|
|
|
|
//SaleId = main.SALEID,
|
|
|
|
|
SaleName = main.SALE,
|
|
|
|
|
GOODSNAME = main.GOODSNAME,
|
|
|
|
|
};
|
|
|
|
|
if (long.TryParse(main.CUSTSERVICEID, out long t1)) generateDto.CustServiceId = t1;
|
|
|
|
|
if (long.TryParse(main.SALEID, out long t2)) generateDto.SaleId = t2;
|
|
|
|
|
await bookingSlotService.ImportSlots(input.Slots, entity.Id, false, generateDto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var Id = entity.Id;
|
|
|
|
|
BookingOrderOutput ordOut = new BookingOrderOutput();
|
|
|
|
|
var main = await _rep.AsQueryable().Filter(null, true).FirstAsync(u => u.Id == Id);
|
|
|
|
|
if (!string.IsNullOrEmpty(entity.MBLNO) || !string.IsNullOrEmpty(entity.CUSTNO))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -12772,7 +12787,7 @@ namespace Myshipping.Application
|
|
|
|
|
throw Oops.Bah("请求参数不能为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(dto.Id.Count == 0)
|
|
|
|
|
if (dto.Id.Count == 0)
|
|
|
|
|
throw Oops.Bah("未选中需要更新的订舱数据,请重新选择");
|
|
|
|
|
|
|
|
|
|
string version = Guid.NewGuid().ToString();
|
|
|
|
@ -12780,7 +12795,7 @@ namespace Myshipping.Application
|
|
|
|
|
// 记录日志
|
|
|
|
|
var oldOrderList = await _rep.AsQueryable().Filter(null, true).Where(x => dto.Id.Contains(x.Id) && x.IsDeleted == false).ToListAsync();
|
|
|
|
|
|
|
|
|
|
if(dto.Id.Count != oldOrderList.Count)
|
|
|
|
|
if (dto.Id.Count != oldOrderList.Count)
|
|
|
|
|
throw Oops.Bah("订舱数据获取失败,部分订舱数据未获取到,订舱数据为空或已作废");
|
|
|
|
|
|
|
|
|
|
//oldOrderList.ForEach()
|
|
|
|
|