如果查询结果为List时:
CommandResult result = this.mongoTemplate.executeCommand(command);
BasicDBList list = (BasicDBList)result.get("values");
List<String>retList = new ArrayList<String>();
retList.addAll(list.stream().map(Object::toString).collect(Collectors.toList()));