当前位置: 代码迷 >> Web前端 >> Velocity if else判断对象里边的值
  详细解决方案

Velocity if else判断对象里边的值

热度:1321   发布时间:2013-03-14 10:33:15.0
Velocity if else判断对象里面的值
#foreach($fundDeteposit in $!list)
				<tr bgcolor="#f3f3f3">
					<td height="32px">$!{fundDeteposit.merchantId}</td>
					<td height="32px">$!{fundDeteposit.depositAmt}</td>
					<td height="32px">$!{fundDeteposit.bankRemark}</td>
					<td height="32px">$!{fundDeteposit.applyOperId}</td>
					<td height="32px">$!{fundDeteposit.applyDate}</td>
					<td height="32px">$!{fundDeteposit.approvalOperId}</td>
					<td height="32px">$!{fundDeteposit.approvalDate}</td>
					<td height="32px">
						#if($!fundDeteposit.status ==  0)
							审核成功
						#elseif($!fundDeteposit.status == 1)
							审核失败
						#elseif($!fundDeteposit.status == 2)
							等待审核
						#else
							$!{fundDeteposit.status}
						#end
					</td>
				</tr>
				#end



<td height="32px">
#if($!transJnl.status ==  0)
成功
#elseif($!transJnl.status == 1)
失败
#elseif($!transJnl.status == 'D')
可疑
#elseif($!transJnl.status == 'R')
冲正
#elseif($!transJnl.status == 'C')
撤销
#else
$!{transJnl.status}
#end
</td>