optimize
wet 1 year ago
parent 55a178cc13
commit 807a270843

@ -810,7 +810,7 @@ namespace Myshipping.Application
CreatedUserId = UserManager.UserId,
CreatedUserName = UserManager.Name
});
if (!string.IsNullOrEmpty(entity.MBLNO)&& !string.IsNullOrEmpty(entity.YARDID))
if (!string.IsNullOrEmpty(entity.MBLNO) && !string.IsNullOrEmpty(entity.YARDID))
{
await UpdateMblno(entity);
}
@ -839,6 +839,15 @@ namespace Myshipping.Application
}
entity.VERSION = Guid.NewGuid().ToString();
if (entity.CARRIERID != mlist.CARRIERID || entity.VOYNO != mlist.VOYNO || entity.VESSEL != mlist.VESSEL)
{
var vess = await _vesselInfo.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID && x.CARRIERID == entity.CARRIERID &&
x.Vessel == entity.VESSEL && x.Voyno == entity.VOYNO).FirstAsync();
}
await _rep.AsUpdateable(entity).IgnoreColumns(it => new
{

Loading…
Cancel
Save