Search in sources :

Example 1 with SysRolePOI

use of vip.mate.system.poi.SysRolePOI in project matecloud by matevip.

the class SysRoleServiceImpl method export.

@Override
public List<SysRolePOI> export() {
    LambdaQueryWrapper<SysRole> queryWrapper = new LambdaQueryWrapper<>();
    queryWrapper.eq(SysRole::getIsDeleted, 0);
    List<SysRole> sysRoles = this.baseMapper.selectList(queryWrapper);
    return sysRoles.stream().map(sysRole -> {
        SysRolePOI sysRolePOI = new SysRolePOI();
        BeanUtils.copyProperties(sysRole, sysRolePOI);
        return sysRolePOI;
    }).collect(Collectors.toList());
}
Also used : ISysUserService(vip.mate.system.service.ISysUserService) SysUser(vip.mate.system.entity.SysUser) Arrays(java.util.Arrays) ObjectUtil(cn.hutool.core.util.ObjectUtil) ISysRolePermissionService(vip.mate.system.service.ISysRolePermissionService) Autowired(org.springframework.beans.factory.annotation.Autowired) LambdaQueryWrapper(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper) SysRolePermission(vip.mate.system.entity.SysRolePermission) Service(org.springframework.stereotype.Service) Map(java.util.Map) ISysRoleService(vip.mate.system.service.ISysRoleService) SysRolePOI(vip.mate.system.poi.SysRolePOI) ServiceImpl(com.baomidou.mybatisplus.extension.service.impl.ServiceImpl) Wrappers(com.baomidou.mybatisplus.core.toolkit.Wrappers) Search(vip.mate.core.database.entity.Search) SysRoleVO(vip.mate.system.vo.SysRoleVO) SysRole(vip.mate.system.entity.SysRole) PageUtil(vip.mate.core.database.util.PageUtil) Collectors(java.util.stream.Collectors) StrUtil(cn.hutool.core.util.StrUtil) List(java.util.List) SysRoleMapper(vip.mate.system.mapper.SysRoleMapper) Lazy(org.springframework.context.annotation.Lazy) IPage(com.baomidou.mybatisplus.core.metadata.IPage) BeanUtils(org.springframework.beans.BeanUtils) Transactional(org.springframework.transaction.annotation.Transactional) SysRole(vip.mate.system.entity.SysRole) SysRolePOI(vip.mate.system.poi.SysRolePOI) LambdaQueryWrapper(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper)

Aggregations

ObjectUtil (cn.hutool.core.util.ObjectUtil)1 StrUtil (cn.hutool.core.util.StrUtil)1 LambdaQueryWrapper (com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper)1 IPage (com.baomidou.mybatisplus.core.metadata.IPage)1 Wrappers (com.baomidou.mybatisplus.core.toolkit.Wrappers)1 ServiceImpl (com.baomidou.mybatisplus.extension.service.impl.ServiceImpl)1 Arrays (java.util.Arrays)1 List (java.util.List)1 Map (java.util.Map)1 Collectors (java.util.stream.Collectors)1 BeanUtils (org.springframework.beans.BeanUtils)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 Lazy (org.springframework.context.annotation.Lazy)1 Service (org.springframework.stereotype.Service)1 Transactional (org.springframework.transaction.annotation.Transactional)1 Search (vip.mate.core.database.entity.Search)1 PageUtil (vip.mate.core.database.util.PageUtil)1 SysRole (vip.mate.system.entity.SysRole)1 SysRolePermission (vip.mate.system.entity.SysRolePermission)1 SysUser (vip.mate.system.entity.SysUser)1