Mongo聚合$ where:在SpringBoot

时间:2017-03-21 14:31:11

标签: spring spring-boot mongotemplate mongorepository

我编写了一个在mongo环境中工作的mongo查询。我需要在Spring中使用MongoTemplate重写相同的查询。尝试了几种方法,但它对我没有用。任何人都可以帮我解决这个问题吗?感谢。

这是mongo查询:

db.getCollection('tenMinAggData_JAT').find({ $where: function(){ return (this.ET - this._id.ST) > 3600 }})

0 个答案:

没有答案