use of vip.mate.system.entity.SysClient in project matecloud by matevip.
the class SysClientServiceImpl method status.
@Override
public boolean status(String ids, String status) {
Collection<? extends Serializable> collection = CollectionUtil.stringToCollection(ids);
for (Object id : collection) {
SysClient sysClient = this.baseMapper.selectById(CollectionUtil.objectToLong(id, 0L));
sysClient.setStatus(status);
this.baseMapper.updateById(sysClient);
}
return true;
}
use of vip.mate.system.entity.SysClient in project matecloud by matevip.
the class SysClientServiceImpl method export.
@Override
public List<SysClientPOI> export() {
LambdaQueryWrapper<SysClient> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysClient::getIsDeleted, 0);
List<SysClient> sysClients = this.baseMapper.selectList(queryWrapper);
return sysClients.stream().map(sysClient -> {
SysClientPOI sysClientPOI = new SysClientPOI();
BeanUtils.copyProperties(sysClient, sysClientPOI);
return sysClientPOI;
}).collect(Collectors.toList());
}
Aggregations