标签:gid operation bsp ring 查询 basic log mongo put
DBObject dbObject = new BasicDBObject();
dbObject.put("status", 1);
DBObject fieldObject = new BasicDBObject();
fieldObject.put("catalogName", true);
fieldObject.put("_id", true);
Query query = new BasicQuery(dbObject, fieldObject);
return MongoPagebleUtil.queryAndPagable(query, pageable, getMongoOperations(), ForeCatalog.class);
@Query(value = "{‘status‘:?0 }", fields = "{ ‘_id‘ : 1, ‘catalogName‘ : 1}")
List<ForeCatalog> findAllForeCatalogIdAndName(String status);
标签:gid operation bsp ring 查询 basic log mongo put
原文地址:http://www.cnblogs.com/azhqiang/p/6698074.html