| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:dept:save')") |
| | | @OperationLog("添加Dept") |
| | | @OperationLog("添加部门") |
| | | @PostMapping("/dept/save") |
| | | public R save(@RequestBody Dept dept) { |
| | | if (!deptService.save(dept)) { |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:dept:update')") |
| | | @OperationLog("修改Dept") |
| | | @OperationLog("修改部门") |
| | | @PostMapping("/dept/update") |
| | | public R update(@RequestBody Dept dept) { |
| | | if (!deptService.updateById(dept)) { |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:dept:remove')") |
| | | @OperationLog("删除Dept") |
| | | @OperationLog("删除部门") |
| | | @PostMapping("/dept/remove/{ids}") |
| | | public R remove(@PathVariable Long[] ids) { |
| | | if (!deptService.removeByIds(Arrays.asList(ids))) { |