From 02c1a0ca5bfc15b94bdc9600cb91531197c7a1de Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Fri, 5 Jul 2024 15:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9MSK=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingOrder/BookingMSKAPIService.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs index aae6ea61..ce6a4b62 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs @@ -1105,6 +1105,30 @@ namespace Myshipping.Application.Service.BookingOrder throw Oops.Bah($"箱内重量合计不等于总重,请修改"); } + if (!model.isBookingPartOwnPrice) + { + if (model.bookedByMaerskPartyCode.Equals(model.priceOwnerMaerskPartyCode)) + { + throw Oops.Bah($"当前订舱合同号是非订舱方合约,持约方不能和订舱方ID信息一样,请根据实际情况填写"); + } + + if (model.bookedByCompanyName.Equals(model.priceOwnerCompanyName)) + { + throw Oops.Bah($"当前订舱合同号是非订舱方合约,持约方公司名称不能和订舱方公司名称信息一样,请根据实际情况填写"); + } + } + else + { + if (!model.bookedByMaerskPartyCode.Equals(model.priceOwnerMaerskPartyCode)) + { + throw Oops.Bah($"当前订舱合同号是订舱方合约,持约方ID必需和订舱方ID信息一致,请根据实际情况填写"); + } + + if (!model.bookedByCompanyName.Equals(model.priceOwnerCompanyName)) + { + throw Oops.Bah($"当前订舱合同号是订舱方合约,持约方名称必需和订舱方名称信息一致,请根据实际情况填写"); + } + } } #endregion