|
|
@ -1643,8 +1643,13 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
#region 舱位
|
|
|
|
#region 舱位
|
|
|
|
[HttpPost("/BookingSlot/delete")]
|
|
|
|
[HttpPost("/BookingSlot/delete")]
|
|
|
|
public async Task Delete([FromQuery] long id)
|
|
|
|
public async Task Delete([FromQuery] string Ids)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var idArr = Ids.Split(',');
|
|
|
|
|
|
|
|
foreach (var idStr in idArr)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var id = Convert.ToInt64(idStr);
|
|
|
|
|
|
|
|
|
|
|
|
var slot = await _repBase.FirstOrDefaultAsync(x => x.Id == id);
|
|
|
|
var slot = await _repBase.FirstOrDefaultAsync(x => x.Id == id);
|
|
|
|
if (slot == null)
|
|
|
|
if (slot == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1665,7 +1670,6 @@ namespace Myshipping.Application
|
|
|
|
UpdatedUserId = UserManager.UserId,
|
|
|
|
UpdatedUserId = UserManager.UserId,
|
|
|
|
UpdatedUserName = UserManager.Name
|
|
|
|
UpdatedUserName = UserManager.Name
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
await _publisher.PublishAsync(new ChannelEventSource("BookingSlotStock:Update", new BookingSlotStockUpdateModel
|
|
|
|
await _publisher.PublishAsync(new ChannelEventSource("BookingSlotStock:Update", new BookingSlotStockUpdateModel
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BOOKING_SLOT_TYPE = slot.BOOKING_SLOT_TYPE,
|
|
|
|
BOOKING_SLOT_TYPE = slot.BOOKING_SLOT_TYPE,
|
|
|
@ -1678,6 +1682,7 @@ namespace Myshipping.Application
|
|
|
|
TenantId = UserManager.TENANT_ID
|
|
|
|
TenantId = UserManager.TENANT_ID
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 分页查询订舱舱位
|
|
|
|
/// 分页查询订舱舱位
|
|
|
|