From 6f54a9a852ced170191b3d0c23f50218dfe0c84a Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Thu, 28 Dec 2023 16:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E8=88=B1=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6=EF=BC=8C=E6=97=A0=E5=8F=B0=E8=B4=A6=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=97=B6=E6=A3=80=E7=B4=A2=E6=9F=A5=E8=AF=A2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();