Due to limitations of the org.bson.Document, you can’t add a second ‘createTime’ expression specified as ‘createTime : Document{{$lte=2024-02-03T19:00}}’. Criteria already contains ‘createTime : Document{{$gte=2022-06-15T12:23:07}}’.
一般查询时间范围可能这么写
感觉没毛病,但是运行起来会报错,原因是Criteria不允许一个字段出现多次
修改为:
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/276982.html