diff --git a/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs b/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs index aa36db82..7098319a 100644 --- a/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs +++ b/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs @@ -395,8 +395,8 @@ namespace Myshipping.Application TaskBCInfoDto bcTargetDto = dto.DataObj.Adapt(); //提取箱信息 - var ctnList = _repCtn.AsQueryable() - .Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID + var ctnList = _repCtn.AsQueryable().Filter(null, true) + .Where(x => x.IsDeleted == false && x.TenantId.Value == UserManager.TENANT_ID && x.SLOT_ID == model.Id).ToList(); if (ctnList != null) @@ -1210,6 +1210,7 @@ namespace Myshipping.Application /// /// 生成订舱订单请求 /// 返回回执 + [HttpGet("/BookingSlot/CreateBookingOrder")] public async Task CreateBookingOrder(BookingGenerateDto model) { TaskManageOrderResultDto result = new TaskManageOrderResultDto(); @@ -1476,7 +1477,7 @@ namespace Myshipping.Application /// /// /// 返回回执 - + [HttpGet("/BookingSlot/SearchBookingSlotWithOrderById")] public async Task SearchBookingSlotWithOrderById(long id) { BookingSlotWithOrderDto dto = null; @@ -1513,7 +1514,7 @@ namespace Myshipping.Application /// /// 订舱编号 /// 返回回执 - + [HttpGet("/BookingSlot/SearchBookingSlotWithOrderByNo")] public async Task SearchBookingSlotWithOrderByNo(string slotBookingNo) { BookingSlotWithOrderDto dto = null;