|
@@ -1,7 +1,9 @@
|
|
|
package com.koobietech.eas.controller;
|
|
|
|
|
|
|
|
|
+import com.koobietech.eas.common.result.JsonPageResult;
|
|
|
import com.koobietech.eas.common.result.JsonResult;
|
|
|
+import com.koobietech.eas.common.result.PageDataResult;
|
|
|
import com.koobietech.eas.mbg.model.EasArcTlsStudents;
|
|
|
import com.koobietech.eas.service.EasStuProfileService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
@@ -12,13 +14,13 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
-import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author lc
|
|
|
*/
|
|
|
@Tag(name = "学生档案下载模块")
|
|
|
@RestController
|
|
|
+@RequestMapping("/student")
|
|
|
public class EasSysStuProfileController {
|
|
|
|
|
|
@Resource
|
|
@@ -45,10 +47,10 @@ public class EasSysStuProfileController {
|
|
|
}
|
|
|
@PostMapping("/query")
|
|
|
@Operation(summary = "查询学员信息", description = "查询学员信息")
|
|
|
- public JsonResult query(@RequestBody(required = false) EasArcTlsStudents studentDto,
|
|
|
- @RequestParam Integer pageNum, @RequestParam Integer pageSize){
|
|
|
- List<EasArcTlsStudents> res = easStuProfileService.query(studentDto, pageNum, pageSize);
|
|
|
- return JsonResult.data(res);
|
|
|
+ public JsonPageResult query(@RequestBody(required = false) EasArcTlsStudents studentDto,
|
|
|
+ @RequestParam Integer pageNum, @RequestParam Integer pageSize){
|
|
|
+ PageDataResult res = easStuProfileService.query(studentDto, pageNum, pageSize);
|
|
|
+ return JsonPageResult.data(res);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/importExcel")
|