|
@@ -283,7 +283,7 @@ public class ExamController extends ControllerSupport {
|
|
};
|
|
};
|
|
|
|
|
|
PageRequest pageRequest = PageRequest.of(curPage, pageSize,
|
|
PageRequest pageRequest = PageRequest.of(curPage, pageSize,
|
|
- new Sort(Direction.DESC, "updateTime"));
|
|
|
|
|
|
+ new Sort(Direction.DESC, "updateTime", "id"));
|
|
|
|
|
|
Page<ExamEntity> page = examRepo.findAll(specification, pageRequest);
|
|
Page<ExamEntity> page = examRepo.findAll(specification, pageRequest);
|
|
|
|
|
|
@@ -393,7 +393,8 @@ public class ExamController extends ControllerSupport {
|
|
return cb.and(predicates.toArray(new Predicate[predicates.size()]));
|
|
return cb.and(predicates.toArray(new Predicate[predicates.size()]));
|
|
};
|
|
};
|
|
|
|
|
|
- PageRequest pageRequest = PageRequest.of(0, 100, new Sort(Direction.DESC, "updateTime"));
|
|
|
|
|
|
+ PageRequest pageRequest = PageRequest.of(0, 100,
|
|
|
|
+ new Sort(Direction.DESC, "updateTime", "id"));
|
|
Page<ExamEntity> page = examRepo.findAll(specification, pageRequest);
|
|
Page<ExamEntity> page = examRepo.findAll(specification, pageRequest);
|
|
|
|
|
|
Iterator<ExamEntity> iterator = page.iterator();
|
|
Iterator<ExamEntity> iterator = page.iterator();
|