From 71ef30da6cbf39b4d4019b91cab657725c8e085d Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Thu, 21 Mar 2024 13:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingCustomerOrder/BookingCustomerOrderService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs b/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs index 13a6309b..d239e473 100644 --- a/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs +++ b/Myshipping.Application/Service/BookingCustomerOrder/BookingCustomerOrderService.cs @@ -1849,6 +1849,10 @@ namespace Myshipping.Application } else if (input.CARGOID == "D") { + if (string.IsNullOrEmpty(input.DUNNO)) + { + throw Oops.Bah("货物标识为危险品的情况下,危险品编号不能为空"); + } if (string.IsNullOrEmpty(input.DCLASS)) { throw Oops.Bah("货物标识为危险品的情况下,危险品等级不能为空");