web123456

Daily syntax of freemarker (traversing list,map collections)

2. Iterate over the Map
Controller:在这里插入图片描述
freemarker template:
在这里插入图片描述
<#if dataList**?exists**>
<#list dataList**?keys as mykey**>
<#assign infoList=dataList[mykey] >
<#list infoList as info>

<#if info_index == 0>
KaTeX parse error: Expected 'EOF', got '#' at position 40: … </#̲if> …{(**?date**)!}

<#if “1”==>
Approval in progress
<#elseif “2”==>
Approved
<#elseif “3”==>
delivered
<#elseif “4”==>
confirmed
<#else>
</#if>


</#list>
</#list>
</#if>