Commit 5f4e8ee9 by jinfeng.wang

fix

parent 61df334a
......@@ -4,6 +4,7 @@ import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.Filters;
import org.bson.Document;
import java.util.HashSet;
......@@ -29,7 +30,7 @@ public class GetPackageFromMongo {
System.out.println("Connect to database successfully");
MongoCollection<Document> collection = mongoDatabase.getCollection("campaign");
MongoCursor<Document> findIterable = collection.find().iterator();
MongoCursor<Document> findIterable = collection.find(Filters.eq("advertiserId", 903)).iterator();
Set<String> set = new HashSet<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment