| | |
| | | package com.thhy.usercore.modules.sys.sysmenu.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.thhy.general.utils.UserInfoUtils; |
| | | import com.thhy.general.common.BasicStatus; |
| | | import com.thhy.general.exception.BasicException; |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void syncMenu(List<MenuTreeVo> sysMenusList) { |
| | | for(MenuTreeVo tree : sysMenusList){ |
| | | |
| | | sysMenusMapper.insertVo(tree); |
| | | if(tree.getChildrens().size()>0){ |
| | | |
| | | syncMenu(tree.getChildrens()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<MenuButtonTreeVo> allRoleMenu(MenuDto menuDto) { |
| | | List<MenuButtonTreeVo> sysMenusList = sysMenusMapper.menuRoleTree(menuDto); |
| | | for(MenuButtonTreeVo mv : sysMenusList){ |