| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得学生") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03StudentErpRespVO> getDemo03Student(@RequestParam("id") Long id) { |
| | | Demo03StudentDO demo03Student = demo03StudentErpService.getDemo03Student(id); |
| | | return success(BeanUtils.toBean(demo03Student, Demo03StudentErpRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得学生分页") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03StudentErpRespVO>> getDemo03StudentPage(@Valid Demo03StudentErpPageReqVO pageReqVO) { |
| | | PageResult<Demo03StudentDO> pageResult = demo03StudentErpService.getDemo03StudentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, Demo03StudentErpRespVO.class)); |
| | |
| | | @GetMapping("/demo03-course/page") |
| | | @Operation(summary = "获得学生课程分页") |
| | | @Parameter(name = "studentId", description = "学生编号") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03CourseDO>> getDemo03CoursePage(PageParam pageReqVO, |
| | | @RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentErpService.getDemo03CoursePage(pageReqVO, studentId)); |
| | |
| | | @GetMapping("/demo03-course/get") |
| | | @Operation(summary = "获得学生课程") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03CourseDO> getDemo03Course(@RequestParam("id") Long id) { |
| | | return success(demo03StudentErpService.getDemo03Course(id)); |
| | | } |
| | |
| | | @GetMapping("/demo03-grade/page") |
| | | @Operation(summary = "获得学生班级分页") |
| | | @Parameter(name = "studentId", description = "学生编号") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03GradeDO>> getDemo03GradePage(PageParam pageReqVO, |
| | | @RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentErpService.getDemo03GradePage(pageReqVO, studentId)); |
| | |
| | | @GetMapping("/demo03-grade/get") |
| | | @Operation(summary = "获得学生班级") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03GradeDO> getDemo03Grade(@RequestParam("id") Long id) { |
| | | return success(demo03StudentErpService.getDemo03Grade(id)); |
| | | } |