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) {