修改订舱台账,无台账记录时检索查询报错

optimize
jianghaiqing 11 months ago
parent f7fd5a1bd3
commit 6f54a9a852

@ -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();

Loading…
Cancel
Save