修改bug:添加查询舱单时的菜单列表权限数据的null值验证

optimize
zhangxiaofeng 1 year ago
parent f8a9d7bca1
commit 30b0bf5e6a

@ -223,7 +223,7 @@ namespace Myshipping.Application
}
//获取菜单列表权限
List<long> userlist = await _right.GetDataScopeList(MenuConst.MenuBookingOrder);
List<string> userlistString = userlist.Select(u => u.ToString()).ToList();
List<string> userlistString = userlist?.Select(u => u.ToString())?.ToList();
List<long?> pidlist = new List<long?>();
if (!string.IsNullOrWhiteSpace(input.SEALNO) || !string.IsNullOrWhiteSpace(input.CNTRNO))
{

Loading…
Cancel
Save