From 85ea0fee7d289d61343ec21d831b554c1c0cc93b Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Sat, 26 Oct 2024 11:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E8=88=B1=E5=AE=8C=E6=88=90=E6=8E=A8?= =?UTF-8?q?=E9=80=81cargoo=E9=80=BB=E8=BE=91=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Method/ActionExecutor/Booking/EDIActionExecutor.cs | 9 +++++++++ .../ActionExecutor/Booking/MailActionExecutor.cs | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/EDIActionExecutor.cs b/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/EDIActionExecutor.cs index fdcd8a7d..9923b3d0 100644 --- a/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/EDIActionExecutor.cs +++ b/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/EDIActionExecutor.cs @@ -1,5 +1,6 @@ using DS.Module.Core; using DS.WMS.Core.Op.Dtos; +using DS.WMS.Core.Op.Dtos.Cargoo; using DS.WMS.Core.Op.Interface; using DS.WMS.Core.TaskInteraction.Dtos; using Microsoft.Extensions.DependencyInjection; @@ -49,6 +50,14 @@ namespace DS.WMS.Core.TaskInteraction.Method.ActionExecutor.Booking var task = context.TaskInfo; task.TaskType = TaskBaseTypeEnum.WAIT_BOOKING; await SetTaskCompleteAsync(task, TaskService, LogService); + + // 订舱完成推送Cargoo + var cargooService = context.ServiceProvider.GetRequiredService(); + await cargooService.SendCargoo(new CargooShipmentReqDto() + { + bookingId = task.BusinessId, + cargooStatusEnum = CargooStatusEnum.Confirmed + }); } } } diff --git a/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/MailActionExecutor.cs b/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/MailActionExecutor.cs index 6feeda95..2f0fd86c 100644 --- a/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/MailActionExecutor.cs +++ b/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/ActionExecutor/Booking/MailActionExecutor.cs @@ -1,4 +1,6 @@ using DS.Module.Core; +using DS.WMS.Core.Op.Dtos.Cargoo; +using DS.WMS.Core.Op.Interface; using DS.WMS.Core.TaskInteraction.Dtos; using DS.WMS.Core.TaskInteraction.Entity; using DS.WMS.Core.TaskInteraction.Interface; @@ -77,6 +79,14 @@ namespace DS.WMS.Core.TaskInteraction.Method.ActionExecutor.Booking var task = context.TaskInfo; task.TaskType = TaskBaseTypeEnum.WAIT_BOOKING; await SetTaskCompleteAsync(task, TaskService, LogService); + + // 订舱完成推送Cargoo + var cargooService = context.ServiceProvider.GetRequiredService(); + await cargooService.SendCargoo(new CargooShipmentReqDto() + { + bookingId = task.BusinessId, + cargooStatusEnum = CargooStatusEnum.Confirmed + }); } }