mongo
jyblims
这个作者很懒,什么都没留下…
展开
-
使用mongoTemplate进行Aggregation聚合查询
1.Criteria criteria = getCriteria(materialInfoDTO,userVo); Query query = new Query(); query.addCriteria(criteria); long sumCount = mongoTemplate.count(query, MaterialInfo.class); Aggregation aggregation = Aggregation.newA原创 2021-01-08 17:49:39 · 5285 阅读 · 1 评论 -
mongoDB操作
1. 查询Query query = new Query(Criteria.where(“sourceId”).is(sourceId).and(“userId”).is(userId).and(“createDate”).in(times));query.with(new Sort(Sort.Direction.DESC, “createDate”));List userHealthDat...原创 2019-05-08 15:08:42 · 274 阅读 · 0 评论