My account
${object.amount}${object.updateDate!}
@_tradeAccount> <#macro message code>${springMacroRequestContext.getMessage(code)}#macro> <#macro merge name value><#if !.vars[name]??><@"<#assign ${name}=''>"?interpret />#if><#if value??><@"<#assign ${name}=${name}+'${value},'>"?interpret />#if>#macro> <@_tradeAccountHistoryList accountId=user.id pageIndex=pageIndex pageSize=10>My account history
-
<#list page.list as a>
<@merge 'userIds' a.userId!/>
#list>
<@_sysUser ids=userIds!><#assign userMap=map!/>@_sysUser>
<#list page.list as a>
-
<@message 'page.status.accountHistory.'+a.status/>${a.createDate!} ${(userMap[a.userId?string].nickName)!}
${a.serialNumber!} ${a.amount!} ${a.amountChange!} ${a.balance!}
${a.description!}${a.reply!}
#list>
<#assign
start=1
end=page.totalPage
/>
<#if (page.pageIndex-5) gt start>
<#assign start=page.pageIndex-4/>
#if>
<#if (page.pageIndex+5) lt end>
<#assign end=page.pageIndex+4/>
#if>
<#if !page.firstPage>
Previous page
<#else>
Previous page
#if>
<#if start gt 1>
1 ...
#if>
<#list start..end as n>
<#if n=page.pageIndex>
${n}
<#else>
${n}
#if>
#list>
<#if end lt page.totalPage>
... ${page.totalPage}
#if>
<#if !page.lastPage>
Next page
<#else>
Next page
#if>
@_tradeAccountHistoryList>