optimize
wet 2 years ago
parent 96b4760029
commit 99d39192ce

@ -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) 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(); .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; i.StartETA = yjdk_time;
it.YgtETD = yjlk_time; i.YgtETD = yjlk_time;
it.StartATA = sjdk_time; i.StartATA = sjdk_time;
it.ATD = sjlg_time; i.ATD = sjlg_time;
await _rep.AsUpdateable(it).IgnoreColumns().ExecuteCommandAsync(); await _rep.AsUpdateable(i).IgnoreColumns().ExecuteCommandAsync();
} }
return order; return order;
} }

Loading…
Cancel
Save