From 0e62d8ed90a2cc0ca5d4d2e23ca53a49828ec9f8 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Sun, 23 Apr 2023 17:27:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B4=BE=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingTruck/BookingTruckService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs index 7f0c4d12..4d75a0dc 100644 --- a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs +++ b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs @@ -509,7 +509,10 @@ namespace Myshipping.Application if(yardInfo != null) { if (string.IsNullOrWhiteSpace(model.YARDCONTRACT)) + { model.YARDCONTRACT = yardInfo.Chief?.Trim(); + } + if (string.IsNullOrWhiteSpace(model.YARDCONTRACTTEL)) model.YARDCONTRACTTEL = yardInfo.Tel?.Trim(); @@ -517,8 +520,8 @@ namespace Myshipping.Application } } - model.InYardContact = orderInfo.YARDCONTRACT; - model.InYardContractTel = orderInfo.YARDCONTRACTTEL; + model.InYardContact = model.YARDCONTRACT; + model.InYardContractTel = model.YARDCONTRACTTEL; if (orderInfo.KGS.HasValue) {