| | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.log.annotation.ApiLog; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/lazy-tree-users") |
| | | public R<List<TreeNodes>> lazyTreeUsers(String tenantId, Long parentId, BladeUser bladeUser) { |
| | | List<TreeNodes> tree = deptService.lazyTreeUsers(Func.toStrWithEmpty(tenantId, bladeUser.getTenantId()), parentId); |
| | | public R<List<TreeNodes>> lazyTreeUsers(Integer type,Long deptId) { |
| | | List<TreeNodes> tree = deptService.lazyTreeUsers(type,deptId); |
| | | return R.data(tree); |
| | | } |
| | | |
| | |
| | | return R.status(deptService.removeDept(ids)); |
| | | } |
| | | |
| | | @ApiLog("Blog详情") |
| | | @GetMapping("/selectInfo") |
| | | public R<List<DeptVO>> selectInfo() { |
| | | List<DeptVO> tree =deptService.selectInfo(); |
| | | return R.data(tree); |
| | | } |
| | | |
| | | @GetMapping("/selectIn") |
| | | public R selectIn() { |
| | | return R.data(deptService.selectIn()); |
| | | } |
| | | |
| | | } |