update SysMenuService.cs
This commit is contained in:
parent
d74b350f86
commit
756dc66350
@ -86,7 +86,7 @@ namespace ZR.Service
|
|||||||
var list = MenuRepository.GetList(f => f.parentId == menuId).OrderBy(f => f.orderNum).ToList();
|
var list = MenuRepository.GetList(f => f.parentId == menuId).OrderBy(f => f.orderNum).ToList();
|
||||||
Context.ThenMapper(list, item =>
|
Context.ThenMapper(list, item =>
|
||||||
{
|
{
|
||||||
item.SubNum = Context.Queryable<SysMenu>().SetContext(x => x.parentId, () => item.MenuId, item).Count();
|
item.SubNum = Context.Queryable<SysMenu>().SetContext(x => x.parentId, () => item.MenuId, item).Count;
|
||||||
});
|
});
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user