From c1b6d8671e331132a2d5dba88cf7d7f31cb678ff Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 22 Jan 2024 10:56:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BC=E4=BB=BB=E5=8A=A1=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=88=B1=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/TaskManagePlat/Dtos/TaskManageOrderBCInfo.cs | 5 +++++ .../Service/TaskManagePlat/TaskManageBCService.cs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderBCInfo.cs b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderBCInfo.cs index b5a1d4b6..bf1a40cf 100644 --- a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderBCInfo.cs +++ b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderBCInfo.cs @@ -331,5 +331,10 @@ namespace Myshipping.Application /// 订舱确认时间 /// public Nullable BookingConfirmDate { get; set; } + + /// + /// 舱位主键 + /// + public Nullable BookingSlotId { get; set; } } } diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs index 4b1c0b23..a62f02f0 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs @@ -761,6 +761,10 @@ namespace Myshipping.Application } } } + else + { + throw Oops.Oh($"生成舱位失败,舱位已存在"); + } #endregion } else if (model.GenerateMethod == "GEN_BOOKING")