| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.constant.YamlProperties; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.MenuMapper; |
| | | import com.whyc.pojo.Menu; |
| | |
| | | List<Menu> resultMenuList = new LinkedList<>(); |
| | | |
| | | QueryWrapper<Menu> wrapper = Wrappers.query(); |
| | | wrapper.eq("enableduse",1); |
| | | //wrapper.eq("enableduse",1); |
| | | List<Menu> menuList = mapper.selectList(wrapper); |
| | | Map<Integer, List<Menu>> collect = menuList.stream().collect(Collectors.groupingBy(Menu::getMenuId)); |
| | | Collection<List<Menu>> values = collect.values(); |
| | |
| | | } |
| | | } |
| | | //todo 国网菜单需要进行审核 |
| | | if(2 == YamlProperties.systemType) { |
| | | |
| | | } |
| | | //先删除所有再添加 |
| | | mapper.deleteMenuAll(); |
| | | int flag = mapper.insertBatchSomeColumn(allMenu); |