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>
若是本人原创文章,请标明:本文来自博客园,作者:huiy_小溪,转载请注明原文链接:https://www.cnblogs.com/huiy/p/9320693.html。
反之,请标明原创作者,文章链接,所属平台。