| | |
| | | */ |
| | | @ApiOperation(value = "分页获取教师管理",httpMethod = "GET") |
| | | @GetMapping("/page") |
| | | public TableDataInfo selectTeacherAll() { |
| | | public TableDataInfo selectTeacherAll(@RequestParam @NotNull(message = "isCm不能为空") int isCm) { |
| | | startPage(); |
| | | List<GetTeacherRespDTO> list = eduResourcesManagerService.selectTeacherAll(); |
| | | List<GetTeacherRespDTO> list = eduResourcesManagerService.selectTeacherAll(isCm); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "根据id删除教师",httpMethod = "GET") |
| | | @ApiImplicitParam(name = "id",dataTypeClass = Long.class,value = "教师id",required = true) |
| | | @GetMapping("/del") |
| | | @GetMapping("/del/{id}") |
| | | public AjaxResult delete(@PathVariable @NotNull(message = "id不能为空") Long id) { |
| | | return this.eduResourcesManagerService.removeTeacherById(id); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation(value = "根据id删除与之关联的工种信息",httpMethod = "GET") |
| | | @ApiImplicitParam(name = "id",dataTypeClass = Long.class,value = "关联的工种id",required = true) |
| | | @GetMapping("/operateType/del") |
| | | @GetMapping("/operateType/del/{id}") |
| | | public AjaxResult deleteTeacherBindOperateType(@PathVariable @NotNull(message = "id不能为空") Long id) { |
| | | return this.eduResourcesManagerService.deleteTeacherBindOperateType(id); |
| | | } |