Freemaker:操作集合


<#if (id?index_of('Base') >= 0)>
    <choose>
        <when test="rootOrgID !=null and rootOrgID != ''">
            rootOrgID = ${"#{"+'rootOrgID'+"}"}
        </when>
        <otherwise>
            branchOrgID = ${"#{"+'rootOrgID'+"}"}
        </otherwise>
    </choose>
 <#else>
    <choose>
        <when test="schoolID !=null and schoolID != ''">
            schoolID = ${"#{"+'schoolID'+"}"}
        </when>
        <otherwise>
            branchSchoolID = ${"#{"+'branchSchoolID'+"}"}
         </otherwise>
     </choose>                
 </#if>

posted @ 2018-07-16 21:59  huiy_小溪  阅读(305)  评论(0编辑  收藏  举报