ZhuDongming
2019-12-27 47a26c3365cfe2a9705aea8ae0887086f521ef7b
src/main/java/com/moral/controller/MenuController.java
@@ -18,7 +18,7 @@
import com.moral.common.bean.PageBean;
import com.moral.common.bean.ResultBean;
import com.moral.entity.Menu;
import com.moral.mapper.MenuMapper;
import com.moral.mapper.ChannelMapper;
import com.moral.mapper.RoleMenuMapper;
import com.moral.service.AccountService;
import com.moral.service.ChannelService;
@@ -32,7 +32,7 @@
    MenuService menuService;
    @Resource
    MenuMapper menuMapper;
    ChannelMapper channelMapper;
    @Resource
    RoleMenuMapper roleMenuMapper;
@@ -95,8 +95,8 @@
    @GetMapping("getZNodes")
    public List<Map<String,Object>> getZNodes(Integer roleId) {
        List<Map<String,Object>> zNodes= new ArrayList<>();
        List<Integer> channelIds = menuMapper.getChannelId();
        List<Integer> channels= roleMenuMapper.getChannels(roleId);
        List<Integer> channelIds = channelMapper.getChannelId();
        List<Integer> channels = roleMenuMapper.getChannels(roleId);
        List<Integer> menus=roleMenuMapper.getMenus(roleId);
        List<Menu> menuList=menuService.getZNodes();
        for(Integer channelId:channelIds){