赞
踩
Criteria criteria = Criteria.where("createTime").lte(new Date());
Query query = new Query();
if (bo.getScope() != null && bo.getScopeId() != null) {
criteria.and("scope").is(bo.getScope()).and("scopeId").is(bo.getScopeId());
}
query.addCriteria(criteria);
query.with(new Sort(Sort.Direction.DESC, "_id"));
List<Person> persons= meerkatMinMongoTemplate.find(query, Person.class);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。