From b03353209c3d08acfa169ce62d102c695e0599fe Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 9 Dec 2022 15:36:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E7=B3=BB=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrderContact/BookingOrderContactService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs b/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs index 8b03ea43..e1bf3861 100644 --- a/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs +++ b/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Myshipping.Application.Entity; using Microsoft.Extensions.Logging; using System.Collections.Generic; +using Furion.FriendlyException; namespace Myshipping.Application { @@ -111,6 +112,9 @@ namespace Myshipping.Application [HttpPost("/BookingOrderContact/savebatch"), SqlSugarUnitOfWork] public async Task SaveBatch(List input) { + if (input!=null&&input.Count>0) { + throw Oops.Oh($"请传入正确数据"); + } var bookingId = input.First().BookingId; _rep.Delete(x => x.BookingId == bookingId); foreach (var item in input)