|
@@ -122,6 +122,23 @@ public class SysDeptController {
|
|
|
return R.ok(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查收子级列表
|
|
|
+ *
|
|
|
+ * @return 返回子级
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/list/descendant")
|
|
|
+ public R<List<SysDeptRelation>> listDescendants(@RequestParam(value = "deptId", required = false) Integer deptId) {
|
|
|
+
|
|
|
+ if (deptId == null){
|
|
|
+ HnqzUser user = SecurityUtils.getUser();
|
|
|
+ deptId = user.getDeptId();
|
|
|
+ }
|
|
|
+
|
|
|
+ return R.ok(relationService.list(Wrappers.<SysDeptRelation>lambdaQuery().eq(SysDeptRelation::getAncestor, deptId)));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 获取登录用户企业的有效期
|
|
|
*
|