| | |
| | | /** |
| | | * 查询年级信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:grade:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:grade:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysGrade sysGrade) |
| | | { |
| | |
| | | /** |
| | | * 导出年级信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:grade:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:grade:export')") |
| | | @Log(title = "年级信息", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SysGrade sysGrade) |
| | |
| | | /** |
| | | * 获取年级信息详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:grade:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:grade:query')") |
| | | @GetMapping(value = "/{gradeId}") |
| | | public AjaxResult getInfo(@PathVariable("gradeId") Long gradeId) |
| | | { |
| | |
| | | /** |
| | | * 新增年级信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:grade:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:grade:add')") |
| | | @Log(title = "年级信息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | |
| | | /** |
| | | * 修改年级信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:grade:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:grade:edit')") |
| | | @Log(title = "年级信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody SysGrade sysGrade) |
| | | { |
| | |
| | | /** |
| | | * 删除年级信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:grade:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:grade:remove')") |
| | | @Log(title = "年级信息", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{gradeIds}") |
| | | @GetMapping("/remove/{gradeIds}") |
| | | public AjaxResult remove(@PathVariable Long[] gradeIds) |
| | | { |
| | | return toAjax(sysGradeService.removeByIds(Arrays.asList(gradeIds))); |