public static List<DBObject> findByQuery(String collectionName, MongoQuery query) {
        DBCollection c = MongoKit.getCollection(collectionName);
        return c.find(query.get()).toArray();
    }
public static List < DBObject > findByQuery ( String collectionName , MongoQuery query ) { DBCollection c = MongoKit . getCollection ( collectionName ) ; return c . find ( query . get ( ) ) . toArray ( ) ; }
根据条件对象查找