标签:style io sp for on log as new c
?
?
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);
标签:style io sp for on log as new c
原文地址:http://www.cnblogs.com/usual2013blog/p/4103549.html