有如下一段代码:
@GetMapping("/{id}")
@BackendPermission(slug = BPermissionConstant.DEPARTMENT_CUD)
@Log(title = "部门-编辑", businessType = BusinessTypeConstant.GET)
public ApiResponse edit(@PathVariable Integer id) throws NotFoundException {
Department department = departmentService.findOrFail