|
@@ -7,6 +7,7 @@ import com.yunzhi.demo.common.BaseController;
|
7
|
7
|
import com.yunzhi.demo.common.Constants;
|
8
|
8
|
import com.yunzhi.demo.common.ResponseBean;
|
9
|
9
|
import com.yunzhi.demo.entity.TaPerson;
|
|
10
|
+import com.yunzhi.demo.vo.StudentTestLog;
|
10
|
11
|
import io.swagger.annotations.Api;
|
11
|
12
|
import io.swagger.annotations.ApiOperation;
|
12
|
13
|
import io.swagger.annotations.ApiParam;
|
|
@@ -73,14 +74,14 @@ public class TaTestLogController extends BaseController {
|
73
|
74
|
@RequestMapping(value="/admin/testLog",method= RequestMethod.GET)
|
74
|
75
|
@ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
75
|
76
|
public ResponseBean testLogList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
76
|
|
- @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
|
|
77
|
+ @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
78
|
+ @ApiParam("学校") @RequestParam(value ="schoolId", required = false) String schoolId,
|
|
79
|
+ @ApiParam("专业") @RequestParam(value ="schoolId", required = false) String specialtyId,
|
|
80
|
+ @ApiParam("学号") @RequestParam(value ="studentNo", required = false) String studentNo) throws Exception{
|
77
|
81
|
|
78
|
|
- IPage<TaTestLog> pg = new Page<>(pageNum, pageSize);
|
79
|
|
- QueryWrapper<TaTestLog> queryWrapper = new QueryWrapper<>();
|
80
|
|
- queryWrapper.gt("status", Constants.STATUS_DELETED);
|
81
|
|
- queryWrapper.orderByDesc("create_date");
|
|
82
|
+ IPage<StudentTestLog> pg = new Page<>(pageNum, pageSize);
|
82
|
83
|
|
83
|
|
- IPage<TaTestLog> result = iTaTestLogService.page(pg, queryWrapper);
|
|
84
|
+ IPage<StudentTestLog> result = iTaTestLogService.queryWithStudent(pg, schoolId, specialtyId, studentNo);
|
84
|
85
|
return ResponseBean.success(result);
|
85
|
86
|
}
|
86
|
87
|
|