|
|
@@ -8,7 +8,6 @@ import com.ydtech.modules.admin.model.SysUser;
|
|
|
import com.ydtech.modules.admin.model.vo.SysDeptVo;
|
|
|
import com.ydtech.modules.admin.service.SysDeptService;
|
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
|
-import com.ydtech.utils.StringUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@@ -125,4 +124,18 @@ public class SysDeptController extends BaseController {
|
|
|
public HttpResult findTeamList(String deptId) {
|
|
|
return HttpResult.ok(sysDeptService.findTeamList(deptId));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2024/4/23 14:59
|
|
|
+ * @Description: 获取所有的树结构
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "获取所有的树结构")
|
|
|
+ @GetMapping(value = "/findAllTree")
|
|
|
+ public HttpResult<List<SysDept>> findAllTree() {
|
|
|
+ LambdaQueryWrapper<SysDept> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(SysDept::getDelFlag, 0);
|
|
|
+ return HttpResult.ok(sysDeptService.findTree("9",null));
|
|
|
+ }
|
|
|
}
|