| | |
| | | @Override |
| | | public Result getBarInPage(AdminNavigationBarDto adminNavigationBarDto) { |
| | | UserEntity userlogin = LoginUserUtil.getLoginUser(); |
| | | long belongId = userlogin.getBelongId() == null ? 0L : userlogin.getBelongId(); |
| | | long belongId = userlogin.getBelongId() == null ? UserEntity.USER_BELONG_TOP : userlogin.getBelongId(); |
| | | Page<AdminNavigationBarVo> page = new Page<>(adminNavigationBarDto.getPageNum(), adminNavigationBarDto.getPageSize()); |
| | | NavigationBarEntity navigationBarEntity = new NavigationBarEntity(); |
| | | navigationBarEntity.setParentId(NavigationBarEntity.PARENTID_DEFAULT); |
| | |
| | | @Transactional |
| | | public Result addBar(AdminAddBarDto adminAddBarDto) { |
| | | UserEntity userlogin = LoginUserUtil.getLoginUser(); |
| | | long belongId = userlogin.getBelongId() == null ? 0L : userlogin.getBelongId(); |
| | | long belongId = userlogin.getBelongId() == null ? UserEntity.USER_BELONG_TOP : userlogin.getBelongId(); |
| | | NavigationBarEntity navigationBarEntity = new NavigationBarEntity(); |
| | | navigationBarEntity.setBelongId(belongId); |
| | | String barName = adminAddBarDto.getBarName(); |
| | |
| | | @Override |
| | | public Result getBarInList() { |
| | | UserEntity userlogin = LoginUserUtil.getLoginUser(); |
| | | long belongId = userlogin.getBelongId() == null ? 0L : userlogin.getBelongId(); |
| | | long belongId = userlogin.getBelongId() == null ? UserEntity.USER_BELONG_TOP : userlogin.getBelongId(); |
| | | List<AdminNavigationBarVo> records = navigationBarMapper.selectAdminNavigationBarVoByParentId(NavigationBarEntity.PARENTID_DEFAULT,belongId); |
| | | if(CollUtil.isNotEmpty(records)){ |
| | | for(AdminNavigationBarVo adminNavigationBarVo : records){ |