| | |
| | | */ |
| | | @Api(tags = "部门管理") |
| | | @RestController |
| | | @RequestMapping("/t-project-dept") |
| | | @RequestMapping("/t-dept") |
| | | public class TDeptController { |
| | | @Resource |
| | | private TDeptService deptService; |
| | |
| | | deptService.updateById(dto); |
| | | return R.ok(); |
| | | } |
| | | @Log(title = "详情部门", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑部门") |
| | | @GetMapping(value = "/detail") |
| | | public R<TDept> detail(@RequestParam String id) { |
| | | return R.ok(deptService.getById(id)); |
| | | } |
| | | @Log(title = "批量删除部门", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除部门") |
| | | @DeleteMapping(value = "/delete") |