菜单新增过滤

parent 8e69766d
......@@ -19,7 +19,7 @@ public partial class PerforMenuRepository : PerforRepository<sys_menu>
public List<sys_menu> GetMenuList(int userid)
{
string sql = @"select sm.* from sys_user_role sur join sys_role_menu srm on sur.roleid = srm.roleid join sys_menu sm on srm.menuid = sm.id where sur.userid=@userid";
string sql = @"select sm.* from sys_user_role sur join sys_role_menu srm on sur.roleid = srm.roleid join sys_menu sm on srm.menuid = sm.id where sur.userid=@userid and sm.states=1";
return DapperQuery(sql, new { userid }).ToList();
}
}
......
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