码迷,mamicode.com
首页 > 其他好文 > 详细

Freemaker:操作集合

时间:2018-07-16 23:03:59      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:and   The   ase   branch   border   rancho   gid   other   pad   


<#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>

Freemaker:操作集合

标签:and   The   ase   branch   border   rancho   gid   other   pad   

原文地址:https://www.cnblogs.com/huiy/p/9320693.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!