|
|
@ -1362,7 +1362,7 @@ namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
|
long Id = Convert.ToInt64(ar);
|
|
|
|
long Id = Convert.ToInt64(ar);
|
|
|
|
var order = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == Id).First();
|
|
|
|
var order = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == Id).First();
|
|
|
|
var et = await _rep.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.MBLNO == order.MBLNO && x.TenantId == UserManager.TENANT_ID && x.ParentId == 0 && x.Id != Id).FirstAsync();
|
|
|
|
var et = await _rep.AsQueryable().Filter(null, true).WhereIF(!string.IsNullOrWhiteSpace(order.MBLNO),x => x.MBLNO == order.MBLNO).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID && x.ParentId == 0 && x.Id != Id).FirstAsync();
|
|
|
|
if (et != null)
|
|
|
|
if (et != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw Oops.Bah("当前主提单号已存在,无法恢复!");
|
|
|
|
throw Oops.Bah("当前主提单号已存在,无法恢复!");
|
|
|
|