| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:major:list')") |
| | | @ApiOperation(value = "专业管理分页列表", response = TMajorQuery.class) |
| | | @PostMapping(value = "/api/t-division-team/pageList") |
| | | @PostMapping(value = "/api/t-major/pageList") |
| | | public R<PageInfo<TMajor>> pageList(@RequestBody String param) { |
| | | TMajorQuery query = JSON.parseObject(param, TMajorQuery.class); |
| | | return R.ok(majorService.pageList(query)); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:major:add')") |
| | | @Log(title = "专业管理信息-新增专业管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加专业管理",response = TMajor.class) |
| | | @PostMapping(value = "/api/t-division-team/add") |
| | | @PostMapping(value = "/api/t-major/add") |
| | | public R<Boolean> add(@RequestBody String param) { |
| | | TMajor dto = JSON.parseObject(param,TMajor.class); |
| | | if(majorService.isExit(dto)){ |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:major:edit')") |
| | | @Log(title = "专业管理信息-修改专业管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改专业管理") |
| | | @PostMapping(value = "/api/t-division-team/update") |
| | | @PostMapping(value = "/api/t-major/update") |
| | | public R<Boolean> update(@RequestBody String param) { |
| | | TMajor dto = JSON.parseObject(param,TMajor.class); |
| | | if(majorService.isExit(dto)){ |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:major:detail')") |
| | | @ApiOperation(value = "查看专业管理详情") |
| | | @GetMapping(value = "/open/t-division-team/getDetailById") |
| | | @GetMapping(value = "/open/t-major/getDetailById") |
| | | public R<TMajor> getDetailById(@RequestParam String id) { |
| | | TMajor equipment = majorService.getById(id); |
| | | return R.ok(equipment); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:major:delete')") |
| | | @Log(title = "专业管理信息-删除专业管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除专业管理") |
| | | @DeleteMapping(value = "/open/t-division-team/deleteById") |
| | | @DeleteMapping(value = "/open/t-major/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | return R.ok(majorService.removeById(id)); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:major:delete')") |
| | | @Log(title = "专业管理信息-删除专业管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除专业管理") |
| | | @DeleteMapping(value = "/open/t-division-team/deleteByIds") |
| | | @DeleteMapping(value = "/open/t-major/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(majorService.removeByIds(ids)); |
| | | } |