<#if parentId?has_content>
<ul>
    <@cms.categoryList advanced=true parentId=parentId pageSize=500>
        <#list page.list as a>
            <@t.merge 'categoryIds' a.id!/>
        </#list>
        <@sys.deptItem itemType='category' deptId=admin.deptId!'' itemIds=t.categoryIds!><#assign deptCategoryMap=map!/></@sys.deptItem>
        <#list page.list as a>
            <#if (deptCategoryMap[a.id?string])?has_content&&deptCategoryMap[a.id?string]>
                <li <#if a.childIds?has_content>_sr