diff --git a/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs b/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs index e1bf3861..fc8c8295 100644 --- a/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs +++ b/Myshipping.Application/Service/BookingOrderContact/BookingOrderContactService.cs @@ -112,7 +112,7 @@ namespace Myshipping.Application [HttpPost("/BookingOrderContact/savebatch"), SqlSugarUnitOfWork] public async Task SaveBatch(List input) { - if (input!=null&&input.Count>0) { + if (input!=null||input.Count==0) { throw Oops.Oh($"请传入正确数据"); } var bookingId = input.First().BookingId;