Commit 579b1262 by guanzhenshan

解决菜单重复的问题

parent 631269b8
...@@ -67,7 +67,7 @@ namespace Bailun.DC.Services ...@@ -67,7 +67,7 @@ namespace Bailun.DC.Services
return list; return list;
} }
var sql = $@"select * from (select t1.id,t1.parentid,t1.icon,t1.`name`,t1.path,t1.sort from dc_menu t1 var sql = $@"select DISTINCT * from (select t1.id,t1.parentid,t1.icon,t1.`name`,t1.path,t1.sort from dc_menu t1
join dc_menu_permission t2 on t1.id=t2.menuid and t2.delstatus=0 and t2.role_id in ({string.Join(",",objRoles.Select(a=>a.role_id))}) join dc_menu_permission t2 on t1.id=t2.menuid and t2.delstatus=0 and t2.role_id in ({string.Join(",",objRoles.Select(a=>a.role_id))})
where t1.delstatus=0 where t1.delstatus=0
union all union all
......
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