|
|
|
@ -6165,13 +6165,13 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
var list=await _rep.AsQueryable().Filter(null, true).Where(x=>x.IsDeleted==false&&x.TenantId==UserManager.TENANT_ID&&x.CARRIERID==order.CARRIERID&&x.VESSEL==order.VESSEL&& x.VOYNO == order.VOYNO && x.Id!=order.Id)
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(order.VOYNOINNER), x => x.VOYNOINNER == order.VOYNOINNER).ToListAsync();
|
|
|
|
|
foreach (var it in list)
|
|
|
|
|
foreach (var i in list)
|
|
|
|
|
{
|
|
|
|
|
it.StartETA = yjdk_time;
|
|
|
|
|
it.YgtETD = yjlk_time;
|
|
|
|
|
it.StartATA = sjdk_time;
|
|
|
|
|
it.ATD = sjlg_time;
|
|
|
|
|
await _rep.AsUpdateable(it).IgnoreColumns().ExecuteCommandAsync();
|
|
|
|
|
i.StartETA = yjdk_time;
|
|
|
|
|
i.YgtETD = yjlk_time;
|
|
|
|
|
i.StartATA = sjdk_time;
|
|
|
|
|
i.ATD = sjlg_time;
|
|
|
|
|
await _rep.AsUpdateable(i).IgnoreColumns().ExecuteCommandAsync();
|
|
|
|
|
}
|
|
|
|
|
return order;
|
|
|
|
|
}
|
|
|
|
|