From a75ca0db8846acb2d5bee4f8c6f069ee9dfc2a64 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Tue, 7 May 2024 16:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SI=20=E6=88=AA=E5=8D=95?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskManagePlat/TaskManageSISubmittedService.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs index d8814973..ae205d43 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs @@ -494,6 +494,16 @@ namespace Myshipping.Application if (siCtnList.Count > 0) { + bkModel.KGS = siCtnList.Sum(x => x.KGS.HasValue ? x.KGS.Value : 0); + bkModel.ChangedFields.Add(nameof(SaveBookingOrderInput.KGS)); + + bkModel.PKGS = siCtnList.Sum(x => x.PKGS.HasValue ? x.PKGS.Value : 0); + + bkModel.ChangedFields.Add(nameof(SaveBookingOrderInput.PKGS)); + + bkModel.CBM = siCtnList.Sum(x => x.CBM.HasValue ? x.CBM.Value : 0); + bkModel.ChangedFields.Add(nameof(SaveBookingOrderInput.CBM)); + siCtnList.ForEach(x => { var ctn = ctnList.FirstOrDefault(a => !string.IsNullOrWhiteSpace(x.CNTRNO) && !string.IsNullOrWhiteSpace(a.CNTRNO) @@ -663,6 +673,8 @@ namespace Myshipping.Application var saveStatusRlt = await _bookingValueAddedService.SaveServiceStatus(pushModel); + _logger.LogInformation($"taskPkId={taskPkId} 提单号{siSubmitted.MBL_NO} 推送截单状态完成 结果={JSON.Serialize(saveStatusRlt)}"); + siSubmitted.PROCESS_STATUS = "SUCC"; siSubmitted.PROCESS_DATE = DateTime.Now; siSubmitted.IS_UPDATE_BOOKING = true;