|
|
|
@ -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<UpdateBookingOrderContactInput> 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)
|
|
|
|
|