菜单调整

master
leo 3 years ago
parent 84a26cd395
commit 8eac275751

@ -51,7 +51,7 @@ namespace FactorySystemBll
roleIds = userInfo.FRoleID.ToString();
}
roles = roleIds.Split(',').ToList();
List<TFunction> menuList = db.Queryable<TFunction>().Where(s => s.FDeleted != delete).ToList();
List<TFunction> menuList = db.Queryable<TFunction>().Where(s => s.FDeleted != delete).OrderBy(s => s.FOrder).ToList();
List<int> hasIds = db.Queryable<TRole, TRole_Right>((a, b) => new JoinQueryInfos(JoinType.Left, a.FID == b.FRoleID))
.Where((a, b) => a.FDeleted != delete && b.FType == (int)Constant.RoleType. && roles.Contains(a.FID.ToString()))
.Select((a, b) => b.FFunctionID).GroupBy("b.FFunctionID").ToList();

Loading…
Cancel
Save