“djh”
2024-11-11 8458e64aab474c0fc2f49ae4ff22fb11ce5cf6e2
exam-admin/src/main/java/com/gkhy/exam/admin/controller/web/ExStudentController.java
@@ -37,13 +37,25 @@
    @ApiOperation(value = "学员列表(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10")
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
            @ApiImplicitParam(paramType = "query", name = "duty", dataType = "String", required = false, value = "职务"),
            @ApiImplicitParam(paramType = "query", name = "name", dataType = "String", required = false, value = "姓名")
    })
    @GetMapping("/list")
    public CommonResult list(ExStudent student){
        return CommonResult.success(studentService.selectStudentList(student));
    }
    @ApiOperation(value = "学员列表全选")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "duty", dataType = "String", required = false, value = "职务"),
            @ApiImplicitParam(paramType = "query", name = "name", dataType = "String", required = false, value = "姓名")
    })
    @GetMapping("/list/checkAll")
    public CommonResult checkAll(ExStudent student){
        return CommonResult.success(studentService.selectStudentCheckAll(student));
    }
    @ApiOperation(value = "根据id获取学员信息")
    @GetMapping(value = { "/{studentId}" })
    public CommonResult getStudentInfo(@PathVariable(value = "studentId", required = true) Long studentId)