#macro categoryTree parentId=''> <@_categoryList advanced=true parentId=parentId count=500> <#list page.list as a> <@t.merge 'categoryIds' a.id!/> #list> <@_sysDeptCategory deptId=admin.deptId!'' categoryIds=t.categoryIds!><#assign deptCategoryMap=map!/>@_sysDeptCategory> <#list page.list as a> <#if (deptCategoryMap[a.id?string])?has_content&&deptCategoryMap[a.id?string]>