optimize
wet 2 years ago
parent 4c228279aa
commit 97e148bc4e

@ -483,7 +483,7 @@ namespace Myshipping.Application
} }
var main = await _rep.AsQueryable().Where(x => x.Id == input.Id).FirstAsync(); var main = await _rep.AsQueryable().Where(x => x.Id == input.Id).FirstAsync();
var et = await _rep.Where(x => x.MBLNO == input.MBLNO && x.TenantId == UserManager.TENANT_ID && x.HBLNO == input.HBLNO && x.ParentId == input.ParentId).FirstAsync(); var et = await _rep.Where(x => x.MBLNO == input.MBLNO && x.TenantId == UserManager.TENANT_ID && x.HBLNO == input.HBLNO && x.ParentId == input.ParentId&&x.Id!=input.Id).FirstAsync();
if (et != null) if (et != null)
{ {

Loading…
Cancel
Save