Commit 67181dc7 authored by 喻春霖's avatar 喻春霖

fixed

parent b0757e95
...@@ -79,7 +79,7 @@ public class AuthLogDao extends StaticCacheDimensionDocumentMongoDao<AuthLog, St ...@@ -79,7 +79,7 @@ public class AuthLogDao extends StaticCacheDimensionDocumentMongoDao<AuthLog, St
}); });
} }
Query query = new Query(criteria); Query query = new Query(criteria);
Sort sort = new Sort(Sort.Direction.ASC, "createTime"); Sort sort = new Sort(Sort.Direction.DESC, "createTime");
Pageable pageable = new PageRequest(pageNo-1, pageSize, sort); Pageable pageable = new PageRequest(pageNo-1, pageSize, sort);
return query(query.with(pageable)); return query(query.with(pageable));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment