use of vip.mate.system.poi.SysDepartPOI in project matecloud by matevip.
the class SysDepartServiceImpl method export.
@Override
public List<SysDepartPOI> export() {
LambdaQueryWrapper<SysDepart> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysDepart::getIsDeleted, 0);
List<SysDepart> sysDeparts = this.baseMapper.selectList(queryWrapper);
return sysDeparts.stream().map(sysDepart -> {
SysDepartPOI sysDepartPOI = new SysDepartPOI();
BeanUtils.copyProperties(sysDepart, sysDepartPOI);
return sysDepartPOI;
}).collect(Collectors.toList());
}
Aggregations