| | |
| | | import com.dsh.course.mapper.RelationMapper; |
| | | import com.dsh.course.mapper.RoleMapper; |
| | | import com.dsh.course.model.node.ZTreeNode; |
| | | import com.dsh.guns.config.UserExt; |
| | | import com.dsh.guns.modular.system.controller.util.Convert; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> selectRoles(String condition) { |
| | | return this.baseMapper.selectRoles(condition); |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | return this.baseMapper.selectRoles(condition,objectType,objectId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ZTreeNode> roleTreeList() { |
| | | return this.baseMapper.roleTreeList(); |
| | | public List<ZTreeNode> roleTreeList(Integer type,Integer id) { |
| | | return this.baseMapper.roleTreeList(type,id); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZTreeNode> roleTreeListByRoleId(String[] roleId) { |
| | | return this.baseMapper.roleTreeListByRoleId(roleId); |
| | | public List<ZTreeNode> roleTreeListByRoleId(String[] roleId,Integer type,Integer id) { |
| | | return this.baseMapper.roleTreeListByRoleId(roleId,type,id); |
| | | } |
| | | |
| | | } |