|
|
|
@ -440,7 +440,8 @@ public class SysMenuService : ISysMenuService, IDynamicApiController, ITransient
|
|
|
|
|
|
|
|
|
|
List<MenuTreeOutput> menus = await _sysMenuRep.AsQueryable()
|
|
|
|
|
.LeftJoin<SysApp>((t1, t2) => t1.Application == t2.Code)
|
|
|
|
|
.Where(t1 => t1.Status == (int)CommonStatus.ENABLE && t1.IsEnableDataScope)
|
|
|
|
|
.Where(t1 => t1.Status == (int)CommonStatus.ENABLE)
|
|
|
|
|
.WhereIF(input.IsEnableDataScope != null, t1 => t1.IsEnableDataScope == input.IsEnableDataScope)
|
|
|
|
|
.WhereIF(menuIdList.Any(), t1 => menuIdList.Contains(t1.Id))
|
|
|
|
|
.OrderBy(t1 => t1.Sort)
|
|
|
|
|
.Select((t1, t2) => new MenuTreeOutput
|
|
|
|
|