Query query = new Query(); Criteria criteria = Criteria.where("timestamp").gt(from).lt(to); query.addCriteria(criteria); query.with(new Sort(Direction.ASC, "timestamp")); query.limit(limit);
本文共 247 字,大约阅读时间需要 1 分钟。
Query query = new Query(); Criteria criteria = Criteria.where("timestamp").gt(from).lt(to); query.addCriteria(criteria); query.with(new Sort(Direction.ASC, "timestamp")); query.limit(limit);
转载于:https://www.cnblogs.com/hupengcool/p/3624020.html