修改任务台

master
jianghaiqing 8 months ago
parent 28df50070f
commit aed2650ccb

@ -49,6 +49,7 @@ namespace Myshipping.Application
SqlSugarRepository<BookingOrder> bookingOrderRepository,
SqlSugarRepository<SysUser> sysUserRepository,
IDjyCustomerService djyCustomerService,
ISysCacheService cache,
ILogger<TaskManageDRAFTService> 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}未提取有效的订舱订单");

Loading…
Cancel
Save