| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Api(tags = "部门信息") |
| | | @RestController |
| | | @RequestMapping("/system/dept") |
| | | public class SysDeptController extends BaseController |
| | |
| | | deptService.checkDeptDataScope(deptId); |
| | | return success(deptService.selectDeptById(deptId)); |
| | | } |
| | | |
| | | /** |
| | | * 根据部门编号获取详细信息 |
| | | */ |
| | | @ApiOperation("根据部门编号获取详细信息无数据权限") |
| | | @PreAuthorize("@ss.hasPermi('system:dept:query')") |
| | | @GetMapping(value = "/NoDataScope/{deptId}") |
| | | public AjaxResult getInfoNoDataScope(@PathVariable Long deptId) |
| | | { |
| | | return success(deptService.selectDeptById(deptId)); |
| | | } |
| | | /** |
| | | * 新增部门 |
| | | */ |