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() + +