动态检索和操作mongodb中Date字段的值

时间:2013-04-03 15:50:26

标签: mongodb spring-mongo

我正在寻找类似下面的内容

在Spring中,它应该看起来像:

  Date currDate = new Date();                
  Criteria.where("closingDate" + 1year).lt(currDate);

是否可以在集合中的closingDate值添加1年?或者我必须首先检索值,添加一年,然后查询?

非常感谢!

0 个答案:

没有答案