@Autowired
MongoDatabase database;

@Override
public List<Grid> getAdditionalGrid(String collection, int cityDataId) {
MongoCollection<Document> gridColl = database.getCollection("grid");
FindIterable<Document> grids = gridColl.find(Filters.eq("cityDataId", cityDataId))
.projection(new BasicDBObject().append("grid_id", true).append("_id",true));
}

}

相关文章:

  • 2021-07-18
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-10-26
  • 2022-12-23
相关资源
相似解决方案