소스 검색

菜单查询获取已有功能菜单

xie.kaifeng 8 달 전
부모
커밋
4ebba40f3c

+ 3 - 1
mtp3-century/src/main/java/com/muchinfo/mtp3century/service/impl/FuncmenulistServiceImpl.java

@@ -124,7 +124,9 @@ public class FuncmenulistServiceImpl extends ServiceImpl<IFuncmenulistMapper, Fu
 
 
     @Override
     @Override
     public List<TreeNode> menuAllList(Integer menuType) {
     public List<TreeNode> menuAllList(Integer menuType) {
-        List<Funcmenulist> funcmenulists = iFuncmenulistMapper.selectList(new QueryWrapper<Funcmenulist>().eq("MENUTYPE", menuType));
+        List<Funcmenulist> funcmenulists = iFuncmenulistMapper.selectList(new QueryWrapper<Funcmenulist>()
+                .eq("MENUTYPE", menuType)
+                .eq("hidden", 1));
         return changeMenuToTreeNode(funcmenulists);
         return changeMenuToTreeNode(funcmenulists);
     }
     }
 
 

+ 1 - 0
mtp3-century/src/main/resources/mapper/FuncmenulistMapper.xml

@@ -43,6 +43,7 @@
             ml.component
             ml.component
         from RoleFuncMenu mlr, FuncMenuList ml
         from RoleFuncMenu mlr, FuncMenuList ml
         where mlr.resourcecode = ml.resourcecode
         where mlr.resourcecode = ml.resourcecode
+        and hidden = 1
         and mlr.RoleID in
         and mlr.RoleID in
         <foreach collection="stringList" item="item" separator="," open="(" close=")" index="index">
         <foreach collection="stringList" item="item" separator="," open="(" close=")" index="index">
             #{item}
             #{item}