|
|
@ -9,6 +9,7 @@ using System.Threading.Tasks;
|
|
|
|
using Myshipping.Application.Entity;
|
|
|
|
using Myshipping.Application.Entity;
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using Furion.FriendlyException;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
|
namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -111,6 +112,9 @@ namespace Myshipping.Application
|
|
|
|
[HttpPost("/BookingOrderContact/savebatch"), SqlSugarUnitOfWork]
|
|
|
|
[HttpPost("/BookingOrderContact/savebatch"), SqlSugarUnitOfWork]
|
|
|
|
public async Task SaveBatch(List<UpdateBookingOrderContactInput> input)
|
|
|
|
public async Task SaveBatch(List<UpdateBookingOrderContactInput> input)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (input!=null&&input.Count>0) {
|
|
|
|
|
|
|
|
throw Oops.Oh($"请传入正确数据");
|
|
|
|
|
|
|
|
}
|
|
|
|
var bookingId = input.First().BookingId;
|
|
|
|
var bookingId = input.First().BookingId;
|
|
|
|
_rep.Delete(x => x.BookingId == bookingId);
|
|
|
|
_rep.Delete(x => x.BookingId == bookingId);
|
|
|
|
foreach (var item in input)
|
|
|
|
foreach (var item in input)
|
|
|
|