|
@@ -8,6 +8,12 @@ import org.apache.commons.fileupload.disk.DiskFileItem;
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.data.domain.Page;
|
|
|
+import org.springframework.data.domain.PageRequest;
|
|
|
+import org.springframework.data.domain.Pageable;
|
|
|
+import org.springframework.data.domain.Sort;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -93,4 +99,16 @@ public class ExamStudentImportController extends ControllerSupport {
|
|
|
examStudentImportRepo.saveAndFlush(examStudentImport);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "查询所有用户", notes = "")
|
|
|
+ @GetMapping("/all/{curPage}/{pageSize}")
|
|
|
+ public Page<ExamStudentImportEntity> getExamStudentImportList(@PathVariable Integer curPage,
|
|
|
+ @PathVariable Integer pageSize) {
|
|
|
+
|
|
|
+ Pageable pageable = new PageRequest(curPage - 1, pageSize, Sort.Direction.DESC,
|
|
|
+ "updateTime");
|
|
|
+ Page<ExamStudentImportEntity> list = examStudentImportRepo.findAll(pageable);
|
|
|
+
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
}
|