| | |
| | | /** |
| | | * 查询学生信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:student:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:student:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysStudent sysStudent) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出学生信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:student:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:student:export')") |
| | | @Log(title = "学生信息", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SysStudent sysStudent) { |
| | |
| | | /** |
| | | * 获取学生信息详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:student:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:student:query')") |
| | | @GetMapping(value = "/{studentId}") |
| | | public AjaxResult getInfo(@PathVariable("studentId") Long studentId) { |
| | | return AjaxResult.success(sysStudentService.getById(studentId)); |
| | |
| | | /** |
| | | * 新增学生信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:student:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:student:add')") |
| | | @Log(title = "学生信息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | |
| | | /** |
| | | * 修改学生信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:student:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:student:edit')") |
| | | @Log(title = "学生信息", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | |
| | | /** |
| | | * 删除学生信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:student:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:student:remove')") |
| | | @Log(title = "学生信息", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{studentIds}") |
| | | public AjaxResult remove(@PathVariable Long[] studentIds) { |