Commit 281c711a by shenjinzhu

websitetype区分

parent fdb6ea45
......@@ -19,8 +19,7 @@ public class CrawTemplateDaoImpl implements CrawTemplateDao{
@Override
public List<CrawTemplate> findAll() {
// mongo.find(Query.query(Criteria.where("websitetype").is("main")), CrawTemplate.class);
return mongo.findAll(CrawTemplate.class);
return mongo.find(Query.query(Criteria.where("websitetype").is("main")), CrawTemplate.class);
}
@Override
......
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