mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 15:55:18 +08:00
添加部门树
This commit is contained in:
15
src/main/resources/scripts/dict/tree/departmentTree.groovy
Normal file
15
src/main/resources/scripts/dict/tree/departmentTree.groovy
Normal file
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user