修改自动订阅规则

optimize
wet 1 year ago
parent ebb1ca99df
commit c3560fe0b1

@ -810,7 +810,7 @@ namespace Myshipping.Application
CreatedUserId = UserManager.UserId, CreatedUserId = UserManager.UserId,
CreatedUserName = UserManager.Name CreatedUserName = UserManager.Name
}); });
if (!string.IsNullOrEmpty(entity.MBLNO)) if (!string.IsNullOrEmpty(entity.MBLNO)&& !string.IsNullOrEmpty(entity.YARDID))
{ {
await UpdateMblno(entity); await UpdateMblno(entity);
} }
@ -922,7 +922,7 @@ namespace Myshipping.Application
} }
} }
await SaveLog(entity, mlist); await SaveLog(entity, mlist);
if (!string.IsNullOrEmpty(entity.MBLNO) && (entity.MBLNO != mlist.MBLNO || entity.YARDID != mlist.YARDID || entity.CARRIERID != mlist.CARRIERID)) if (!string.IsNullOrEmpty(entity.MBLNO) && !string.IsNullOrEmpty(entity.YARDID) && (entity.MBLNO != mlist.MBLNO || entity.YARDID != mlist.YARDID || entity.CARRIERID != mlist.CARRIERID))
{ {
//更改提单号 //更改提单号
await UpdateMblno(entity); await UpdateMblno(entity);

Loading…
Cancel
Save