diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageDRAFTService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageDRAFTService.cs index 389e18c9..c13bcef6 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageDRAFTService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageDRAFTService.cs @@ -49,6 +49,7 @@ namespace Myshipping.Application SqlSugarRepository bookingOrderRepository, SqlSugarRepository sysUserRepository, IDjyCustomerService djyCustomerService, + ISysCacheService cache, ILogger logger) { _taskBaseRepository = taskBaseRepository; @@ -62,6 +63,7 @@ namespace Myshipping.Application _sysUserRepository = sysUserRepository; _logger = logger; + _cache = cache; } #region 获取DRAFT详情 @@ -625,7 +627,7 @@ namespace Myshipping.Application string mblNo = draft.MBL_NO.ToUpper().Trim(); var bookingInfo = _bookingOrderRepository.AsQueryable().Filter(null, true) - .FirstAsync(a => a.MBLNO == mblNo && a.IsDeleted == false && (a.ParentId == null || a.ParentId == 0)); + .First(a => a.MBLNO == mblNo && a.IsDeleted == false && (a.ParentId == null || a.ParentId == 0)); if (bookingInfo == null) throw Oops.Oh($"提单号{mblNo}未提取有效的订舱订单");