| | |
| | | package com.panzhihua.westcommittee.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.vos.west.SystemUserVo; |
| | | import com.panzhihua.westcommittee.dao.SystemMenuMapper; |
| | | import com.panzhihua.westcommittee.model.entity.SystemMenu; |
| | | import com.panzhihua.westcommittee.service.ISystemMenuService; |
| | |
| | | |
| | | |
| | | @Override |
| | | public List<SystemMenu> getSystemMenuList() { |
| | | public List<SystemMenu> getSystemMenuList(SystemUserVo systemUserVo) { |
| | | List<SystemMenu> list = this.list(); |
| | | List<SystemMenu> collect = list.stream().filter(s->s.getParentId() == 0 && (s.getId()==1 || s.getId()==2)).collect(Collectors.toList()); |
| | | if(systemUserVo.getSystemRoleId()!=1){ |
| | | list = list.stream().filter(s->s.getId() != 1 || s.getId()!=2 || s.getId()!=3 || s.getId()!=35 || s.getId()!=61 || s.getId()!=62).collect(Collectors.toList()); |
| | | } |
| | | List<SystemMenu> collect = list.stream().filter(s->s.getParentId() == 0 && s.getId() != 3 ).collect(Collectors.toList()); |
| | | for (SystemMenu systemMenu : collect) { |
| | | build(systemMenu, list); |
| | | } |