From 3fe44d28731a9b201dd9679eef6c435a7ae9c0ae Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Wed, 5 Jun 2024 09:55:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=A7=E7=89=A9=E8=BF=90?= =?UTF-8?q?=E8=BE=93=E8=AE=A1=E5=88=92=E5=B7=B2=E5=8F=98=E6=9B=B4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskManagePlat/TaskTransPlanHasChangeInfo.cs | 10 ++++++++++ .../TaskManagePlat/Dtos/TaskManageMapper.cs | 10 ++++++---- .../TaskManageOrderTransportPlanHasChangeInfo.cs | 9 +++++++++ .../TaskTransPlanHasChangeService.cs | 16 +++++++++++++++- 4 files changed, 40 insertions(+), 5 deletions(-) diff --git a/Myshipping.Application/Entity/TaskManagePlat/TaskTransPlanHasChangeInfo.cs b/Myshipping.Application/Entity/TaskManagePlat/TaskTransPlanHasChangeInfo.cs index ac950a9d..4d602349 100644 --- a/Myshipping.Application/Entity/TaskManagePlat/TaskTransPlanHasChangeInfo.cs +++ b/Myshipping.Application/Entity/TaskManagePlat/TaskTransPlanHasChangeInfo.cs @@ -136,5 +136,15 @@ namespace Myshipping.Application /// 最后转发客户邮件状态名称 /// public string LST_STATUS_NAME { get; set; } + + /// + /// 列表批次号 + /// + public string GROUP_BATCH_NO { get; set; } + + /// + /// 是否列表最后项 1-是最后项 0-不是最后项 + /// + public bool IS_LAST { get; set; } } } diff --git a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageMapper.cs b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageMapper.cs index a97cab0a..e3cc1437 100644 --- a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageMapper.cs +++ b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageMapper.cs @@ -1182,8 +1182,8 @@ namespace Myshipping.Application .Map(dest => dest.CY_CUT_DATE, src => src.CYCutDate) .Map(dest => dest.ROUTE_CODE, src => src.RouteCode) .Map(dest => dest.EMAIL_SUBJECT, src => src.MailSubject); - - + + config.ForType() .Map(dest => dest.BOOKING_NO, src => src.BookingNo) .Map(dest => dest.MBL_NO, src => src.BillNo) @@ -1200,9 +1200,11 @@ namespace Myshipping.Application .Map(dest => dest.VOYNO, src => src.Voyno) .Map(dest => dest.SHIP_FLAG, src => src.ShipFlag) .Map(dest => dest.ETD, src => src.ETD) - .Map(dest => dest.ETA, src => src.ETA); + .Map(dest => dest.ETA, src => src.ETA) + .Map(dest => dest.GROUP_BATCH_NO, src => src.GroupBatchNo) + .Map(dest => dest.IS_LAST, src => src.IsLast); + - } } } diff --git a/Myshipping.Application/Service/TaskManagePlat/Dtos/TransPlanHasChange/TaskManageOrderTransportPlanHasChangeInfo.cs b/Myshipping.Application/Service/TaskManagePlat/Dtos/TransPlanHasChange/TaskManageOrderTransportPlanHasChangeInfo.cs index 76a02c41..62ab8f27 100644 --- a/Myshipping.Application/Service/TaskManagePlat/Dtos/TransPlanHasChange/TaskManageOrderTransportPlanHasChangeInfo.cs +++ b/Myshipping.Application/Service/TaskManagePlat/Dtos/TransPlanHasChange/TaskManageOrderTransportPlanHasChangeInfo.cs @@ -96,6 +96,15 @@ namespace Myshipping.Application /// public string ShipFlag { get; set; } + /// + /// 列表批次号 + /// + public string GroupBatchNo { get; set; } + + /// + /// 是否列表最后一项 + /// + public bool IsLast { get; set; } /// /// 出运计划 diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskTransPlanHasChangeService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskTransPlanHasChangeService.cs index 8f300edf..20eec086 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskTransPlanHasChangeService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskTransPlanHasChangeService.cs @@ -233,7 +233,21 @@ namespace Myshipping.Application [HttpGet("/TaskTransPlanHasChange/AutoTransferNotice")] public async Task AutoTransferNotice(string taskPKId) { - return null; + TaskManageOrderResultDto result = new TaskManageOrderResultDto(); + + try + { + + } + catch(Exception ex) + { + result.succ = false; + result.msg = $"自动转发货物运输计划已变更失败,原因:{ex.Message}"; + + _logger.LogInformation($"taskPKId={taskPKId} 自动转发货物运输计划已变更失败,原因:{ex.Message}"); + } + + return result; } #endregion