From b8f63236cc261fea713dfbccbf34ec969a4f995d Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Tue, 9 Apr 2024 14:38:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=AE=A2=E8=88=B1=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E6=8E=A5=E5=8F=A3=EF=BC=9A=E4=B8=AD=E8=BF=9C=E7=BA=A6?= =?UTF-8?q?=E5=8F=B7=E6=9C=80=E9=95=BF8=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingCustomerOrder/BookingCustomerOrderService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs b/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs index 3b13c688..60e238eb 100644 --- a/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs +++ b/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs @@ -1809,6 +1809,11 @@ namespace Myshipping.Application throw Oops.Bah($"未找到匹配的船司代码:{input.CARRIERID}"); } + // 2024-4-9:中远约号最长8位 + if (input.CARRIERID == "COSCO" && input.CONTRACTNO.Length > 8) + { + throw Oops.Bah($"约号超长,【中远】约号最长8位,请检查"); + } if (!input.ETD.HasValue) {