From 0e491b80188fbbfbd9ce77b356ae566bb70a634b Mon Sep 17 00:00:00 2001 From: zhangxiaofeng Date: Tue, 20 Feb 2024 10:20:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E8=88=B1=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6=E5=89=8D=EF=BC=8C=E9=AA=8C=E8=AF=81=E7=AE=B1=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E4=BB=B6=E5=B0=BA=E9=87=8D=E3=80=81=E5=B0=81?= =?UTF-8?q?=E5=8F=B7=E6=98=AF=E5=90=A6=E4=BC=9A=E8=A2=AB=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 4269de08..30f04cfe 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -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; }