|
@@ -1,16 +1,21 @@
|
|
|
package com.keao.edu.controller;
|
|
|
|
|
|
-import com.keao.edu.common.controller.BaseController;
|
|
|
-import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
-import com.keao.edu.user.entity.ExaminationBasic;
|
|
|
-import com.keao.edu.user.service.ExaminationBasicService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import com.keao.edu.common.controller.BaseController;
|
|
|
+import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
+import com.keao.edu.common.page.PageInfo;
|
|
|
+import com.keao.edu.common.page.QueryInfo;
|
|
|
+import com.keao.edu.user.entity.ExaminationBasic;
|
|
|
+import com.keao.edu.user.service.ExaminationBasicService;
|
|
|
+
|
|
|
/**
|
|
|
* @Author Joburgess
|
|
|
* @Date 2020.06.18
|
|
@@ -28,4 +33,12 @@ public class ExaminationBasicController extends BaseController {
|
|
|
public HttpResponseResult<ExaminationBasic> getInfo(Integer examId){
|
|
|
return succeed(examinationBasicService.getInfo(examId));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("分页查询")
|
|
|
+ @GetMapping(value = "/queryPage")
|
|
|
+ public HttpResponseResult<PageInfo<ExaminationBasic>> queryPage(String search) {
|
|
|
+ QueryInfo queryInfo = new QueryInfo();
|
|
|
+ queryInfo.setSearch(search);
|
|
|
+ return succeed(examinationBasicService.queryPage(queryInfo));
|
|
|
+ }
|
|
|
}
|