diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 051f4f9d..1bc5948c 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -497,11 +497,13 @@ namespace Myshipping.Application { if (isUseGoodsStatus) { + var curTenant = list.Items.FirstOrDefault()?.TenantId; + QueryServiceProjectWithStatusBatch batchQuery = new QueryServiceProjectWithStatusBatch { BookingIds = bookingidlist.ToArray(), QueryType = TrackingQueryTypeEnum.QUERY_SERVICE_ALL, - TenantId = list.Items.FirstOrDefault().TenantId.Value + TenantId = curTenant.HasValue ? curTenant.Value : 0 }; var queryRlt = _serviceWorkFlowManageService.GetEnableStatusListByBusinessBatch(batchQuery) .GetAwaiter().GetResult();