修改订舱台账前,验证箱信息的件尺重、封号是否会被覆盖逻辑调整

optimize
zhangxiaofeng 9 months ago
parent 4e5103d891
commit 0e491b8018

@ -2605,10 +2605,12 @@ namespace Myshipping.Application
foreach (var oldCtn in existsCtnList)
{
var newCtn = checkCtnDto.CtnInputs.First(c => c.Id == oldCtn.Id);
if (oldCtn.SEALNO != newCtn.SEALNO
|| oldCtn.PKGS != newCtn.PKGS
|| oldCtn.KGS != newCtn.KGS
|| oldCtn.CBM != newCtn.CBM)
if (
(!string.IsNullOrWhiteSpace(oldCtn.SEALNO) && string.IsNullOrWhiteSpace(newCtn.SEALNO))
|| (oldCtn.PKGS != 0 && newCtn.PKGS == 0)
|| (oldCtn.KGS != 0 && newCtn.KGS == 0)
|| (oldCtn.CBM != 0 && newCtn.CBM == 0)
)
{
return true;
}

Loading…
Cancel
Save