List<Obj> dbList = baseMapper.selectObj(stime);
if(CollectionUtils.isNotEmpty(dbList )){
    List<String> ids = dbList .stream()
                    .map(Obj::getId)
                    .collect(Collectors.toList());
}