| | |
| | | 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; |
| | |
| | | MenuService menuService; |
| | | |
| | | @Resource |
| | | MenuMapper menuMapper; |
| | | ChannelMapper channelMapper; |
| | | |
| | | @Resource |
| | | RoleMenuMapper roleMenuMapper; |
| | |
| | | @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){ |