From fca3e7ee9562eb3b157c181e50a2dd7e8c5247bf Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Sun, 17 Mar 2024 10:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=83=A8=E9=97=A8=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripts/dict/tree/departmentTree.groovy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/resources/scripts/dict/tree/departmentTree.groovy diff --git a/src/main/resources/scripts/dict/tree/departmentTree.groovy b/src/main/resources/scripts/dict/tree/departmentTree.groovy new file mode 100644 index 00000000..9c03c814 --- /dev/null +++ b/src/main/resources/scripts/dict/tree/departmentTree.groovy @@ -0,0 +1,15 @@ +package scripts.dict + + +import cn.lihongjie.coal.department.controller.DepartmentController +import org.springframework.context.ApplicationContext + +ApplicationContext ioc = ioc + +def controller = ioc.getBean(DepartmentController.class) + + + +return controller.roots() + +