|
|
@ -1655,16 +1655,17 @@ namespace Myshipping.Application
|
|
|
|
var orderlist = await _rep.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToListAsync();
|
|
|
|
var orderlist = await _rep.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToListAsync();
|
|
|
|
foreach (var item in dto)
|
|
|
|
foreach (var item in dto)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var model = infolist.Where(x => x.Vessel == item.Vessel && x.Voyno == item.Voyno).FirstOrDefault();
|
|
|
|
//var model = infolist.Where(x => x.Vessel == item.Vessel && x.Voyno == item.Voyno).FirstOrDefault();
|
|
|
|
if (model != null)
|
|
|
|
//if (model != null)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
model.ETA = item.ETA;
|
|
|
|
// model.ETA = item.ETA;
|
|
|
|
model.YgtETD = item.ETD;
|
|
|
|
// model.YgtETD = item.ETD;
|
|
|
|
model.ATD = item.ATD;
|
|
|
|
// model.ATD = item.ATD;
|
|
|
|
model.UpdatedTime = DateTime.Now;
|
|
|
|
// model.UpdatedTime = DateTime.Now;
|
|
|
|
await _vesselinfo.AsUpdateable(model).IgnoreColumns().ExecuteCommandAsync();
|
|
|
|
// await _vesselinfo.AsUpdateable(model).IgnoreColumns().ExecuteCommandAsync();
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
await _vesselinfo.UpdateAsync(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false&&
|
|
|
|
|
|
|
|
x.Vessel == item.Vessel && x.Voyno == item.Voyno , x => new DjyVesselInfo { ETA = item.ETA, YgtETD= item.ETD , ATD = item.ATD , UpdatedTime = DateTime.Now });
|
|
|
|
var order = orderlist.Where(x => x.VESSEL == item.Vessel && x.VOYNO == item.Voyno).ToList();
|
|
|
|
var order = orderlist.Where(x => x.VESSEL == item.Vessel && x.VOYNO == item.Voyno).ToList();
|
|
|
|
bool issend = false;
|
|
|
|
bool issend = false;
|
|
|
|
if (order != null)
|
|
|
|
if (order != null)
|
|
|
|