From 4344a6c6b8205658f93f08eca2734ec4a5a33390 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Wed, 23 Nov 2022 13:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingOrder/BookingOrderService.cs | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 3fc51009..b9914dd2 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -50,6 +50,7 @@ using System.Runtime.InteropServices; using System.Threading; using Furion.JsonSerialization; using System.Xml.Linq; +using Myshipping.Application.Helper; namespace Myshipping.Application { @@ -2288,6 +2289,40 @@ namespace Myshipping.Application } + + + + + + /// + /// 获取场站数据 + /// + /// + /// + /// + [HttpGet("/BookingOrder/GetYardData")] + public async Task GetYardData(long bookingId, bool isWeb = false) + { + //订舱数据 + var order = _rep.FirstOrDefault(x => x.Id == bookingId); + if (order == null) + { + throw Oops.Bah(BookingErrorCode.BOOK001); + } + + var rtn = await YardDataHelper.GetYardData(order.TenantId.Value, order.TenantName, order.MBLNO, order.YARDID, isWeb); + if (!rtn.Key) + { + throw Oops.Bah(rtn.Value); + } + + return rtn.Value; + } + + + + + /// /// 记录或更新订舱状态 ///