diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index b59ce21d..2772967c 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -223,7 +223,7 @@ namespace Myshipping.Application } //获取菜单列表权限 List userlist = await _right.GetDataScopeList(MenuConst.MenuBookingOrder); - List userlistString = userlist.Select(u => u.ToString()).ToList(); + List userlistString = userlist?.Select(u => u.ToString())?.ToList(); List pidlist = new List(); if (!string.IsNullOrWhiteSpace(input.SEALNO) || !string.IsNullOrWhiteSpace(input.CNTRNO)) {