|
|
@ -642,7 +642,7 @@ namespace Myshipping.Application
|
|
|
|
model.BookingId = bkOrder.Id; //客户订舱数据与订舱台账数据关联
|
|
|
|
model.BookingId = bkOrder.Id; //客户订舱数据与订舱台账数据关联
|
|
|
|
await _rep.UpdateAsync(model);
|
|
|
|
await _rep.UpdateAsync(model);
|
|
|
|
|
|
|
|
|
|
|
|
var ctnList = await _repCtn.Where(x => x.BILLID == model.Id).ToListAsync();
|
|
|
|
var ctnList = await _repCtn.AsQueryable().Filter(null, true).Where(x => x.BILLID == model.Id).ToListAsync();
|
|
|
|
foreach (var ctn in ctnList)
|
|
|
|
foreach (var ctn in ctnList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ctn.Id = YitIdHelper.NextId();
|
|
|
|
ctn.Id = YitIdHelper.NextId();
|
|
|
@ -978,7 +978,7 @@ namespace Myshipping.Application
|
|
|
|
model.BookingId = bkOrder.Id; //客户订舱数据与订舱台账数据关联
|
|
|
|
model.BookingId = bkOrder.Id; //客户订舱数据与订舱台账数据关联
|
|
|
|
await _rep.UpdateAsync(model);
|
|
|
|
await _rep.UpdateAsync(model);
|
|
|
|
|
|
|
|
|
|
|
|
var ctnList = await _repCtn.Where(x => x.BILLID == model.Id).ToListAsync();
|
|
|
|
var ctnList = await _repCtn.AsQueryable().Filter(null, true).Where(x => x.BILLID == model.Id).ToListAsync();
|
|
|
|
foreach (var ctn in ctnList)
|
|
|
|
foreach (var ctn in ctnList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ctn.Id = YitIdHelper.NextId();
|
|
|
|
ctn.Id = YitIdHelper.NextId();
|
|
|
|