WANG 5 vuotta sitten
vanhempi
commit
a5496ca5c7

+ 3 - 2
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamController.java

@@ -283,7 +283,7 @@ public class ExamController extends ControllerSupport {
 		};
 
 		PageRequest pageRequest = PageRequest.of(curPage, pageSize,
-				new Sort(Direction.DESC, "updateTime"));
+				new Sort(Direction.DESC, "updateTime", "id"));
 
 		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()]));
 		};
 
-		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);
 
 		Iterator<ExamEntity> iterator = page.iterator();

+ 1 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamStudentController.java

@@ -229,7 +229,7 @@ public class ExamStudentController extends ControllerSupport {
 		};
 
 		PageRequest pageRequest = PageRequest.of(curPage, pageSize,
-				new Sort(Direction.DESC, "updateTime"));
+				new Sort(Direction.DESC, "updateTime", "id"));
 
 		Page<ExamStudentEntity> examStudents = examStudentRepo.findAll(specification, pageRequest);
 

+ 1 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/provider/ExamStudentCloudServiceProvider.java

@@ -371,7 +371,7 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
 		};
 
 		PageRequest pageRequest = PageRequest.of(curPage, pageSize,
-				new Sort(Direction.DESC, "updateTime"));
+				new Sort(Direction.DESC, "updateTime", "id"));
 
 		Page<ExamStudentEntity> examStudents = examStudentRepo.findAll(specification, pageRequest);