| | |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.system.entity.SysDept; |
| | | import com.ycl.system.service.ISysDeptService; |
| | | import constant.UserConstants; |
| | | import enumeration.BusinessType; |
| | | 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 |
| | | */ |
| | | @RestController |
| | |
| | | deptService.checkDeptDataScope(deptId); |
| | | return toAjax(deptService.deleteDeptById(deptId)); |
| | | } |
| | | @GetMapping("/all") |
| | | @ApiOperation(value = "下拉列表", notes = "下拉列表") |
| | | public Result all() { |
| | | return deptService.all(); |
| | | } |
| | | |
| | | @GetMapping("/pullList") |
| | | @ApiOperation(value = "区域下拉列表", notes = "区域下拉列表") |
| | | public Result pullList() { |
| | | return deptService.pullList(); |
| | | } |
| | | |
| | | @GetMapping("/cascader") |
| | | @ApiOperation(value = "部门级联选择数据", notes = "部门级联选择数据") |
| | | public Result cascader() { |
| | | return deptService.cascader(); |
| | | } |
| | | } |