Commit c9440f49 authored by 黄奎's avatar 黄奎

页面修改

parent f5e7179e
......@@ -41,5 +41,32 @@ WHERE 1=1
return new List<RB_Menu_Function_ViewModel>();
}
}
/// <summary>
/// 获取菜单功能权限列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public List<RB_Menu_Function_ViewModel> GetMenuFunctionListRepository(RB_Menu_Function_ViewModel query)
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT A.*,
FROM RB_Menu_Function AS A
WHERE 1=1
");
if (query != null)
{
if (query.MenuId > 0)
{
builder.Append($" AND A.{nameof(RB_Menu_Function_ViewModel.MenuId)}={query.MenuId} ");
}
return Get<RB_Menu_Function_ViewModel>(builder.ToString()).ToList();
}
else
{
return new List<RB_Menu_Function_ViewModel>();
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment