|
|
|
|
@ -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();
|
|
|
|
|
|