| | |
| | | |
| | | |
| | | import com.gkhy.exam.common.annotation.Log; |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | | import com.gkhy.exam.system.domain.ExPhaseStudent; |
| | |
| | | return CommonResult.success(phaseStudentService.selectPhaseStudentList(phaseStudent)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "批次与学员关系管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增学员") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(phaseStudentService.addPhaseStudent(phaseStudent)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "批次与学员关系管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "批量新增学员") |
| | | @PostMapping("/batchAdd") |
| | |
| | | return CommonResult.success(phaseStudentService.batchAddPhaseStudent(phaseStudents)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "批次与学员关系管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "删除学员") |
| | | @DeleteMapping(value = { "/{phaseStudentId}" }) |
| | |
| | | return CommonResult.success(phaseStudentService.deletePhaseStudent(phaseStudentId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "批次与学员关系管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "批量删除学员") |
| | | @DeleteMapping(value = { "/batchDelete" }) |