[{ "name": "部门列表", <#if departIds??&&departIds?size gt 0> "checked":true, "open": true <#if list?size gt 0>, "isParent": true, "children": [ <#list list as depart> { "id": "${depart.id}", "name": "${depart.name!}", <#if departIds??&&departIds?seq_contains(depart.id)> "checked":true, <#if depart.child?size gt 0> <#assign dlist=depart.child> "isParent": true, "open": false, <#include "departftl.ftl"> <#else> "isParent": false }<#if depart_has_next>, ] }]