1.有时候没有按条件 查询 是因为

Aggregation agg = Aggregation.newAggregation(proj,match,group);
这个组合条件是有顺序的。
2.有个问题没明白

 

mongoTemplate 组合条件查询 的问题

这是返回结果

mongoTemplate 组合条件查询 的问题

为什么总会返回_id

相关文章:

  • 2021-04-02
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2021-06-22
猜你喜欢
  • 2021-09-29
  • 2021-06-11
  • 2021-12-18
  • 2022-12-23
  • 2021-12-16
  • 2021-10-30
  • 2022-12-23
相关资源
相似解决方案