Browse Source

Merge branch 'dev0410' of https://git.oschina.net/songyue123456/comm-ques-bank into dev0410

chenken 7 years ago
parent
commit
a614b13352

+ 1 - 1
cqb-question-resource/src/main/java/com/qmth/cqb/question/service/impl/QuesServiceImpl.java

@@ -215,7 +215,7 @@ public class QuesServiceImpl implements QuesService{
         query.addCriteria(Criteria.where("course.enable").is("true"));
 
         long count = this.mongoTemplate.count(query, Question.class);
-        query.with(new Sort(new Sort.Order(Sort.Direction.DESC,"createTime")));
+//        query.with(new Sort(new Sort.Order(Sort.Direction.DESC,"createTime")));
         query.limit(pageSize);
         query.skip((curPage - 1) * pageSize);
         List<Question> questionList = this.mongoTemplate.find(query, Question.class);