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

velocity map

时间:2016-01-08 13:17:17      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

例子:

 

#set($PAY_TRANSACTION_TYPE={"ORDER_PAY":"Payment", "WITHDRAWALS":"Withdraw","TOP":"Add Funds"})

#set($PAY_STATUS={"CREATE":"11111","SUCCESS":"Completed","CHECK":"Checking","Close":"Failed"})

 

#macro(transferType $key)

 $!PAY_TRANSACTION_TYPE.get($!key)

#end

 

#macro(transferStatus $key)

 $!PAY_STATUS.get($!key)

#end

velocity map

标签:

原文地址:http://www.cnblogs.com/qwqs/p/5112747.html

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