<#list sortResourceTableColumns as column>
<#if column_index = 0>//第一条数据
<#if ((column.resourcecolumnIndexType??) && column.resourcecolumnIndexType == 1)>
order by ${column.resourcecolumnCode?replace("([a-z])([A-Z]+)","$1_$2","r")?lower_case} asc
<#elseif ((column.resourcecolumnIndexType??) && column.resourcecolumnIndexType == 2)>
order by ${column.resourcecolumnCode?replace("([a-z])([A-Z]+)","$1_$2","r")?lower_case} desc
</#if>
<#else>
<#if ((column.resourcecolumnIndexType??) && column.resourcecolumnIndexType == 1)>
,${column.resourcecolumnCode?replace("([a-z])([A-Z]+)","$1_$2","r")?lower_case} asc
<#elseif ((column.resourcecolumnIndexType??) && column.resourcecolumnIndexType == 2)>
,${column.resourcecolumnCode?replace("([a-z])([A-Z]+)","$1_$2","r")?lower_case} desc
</#if>
</#if>
</#list>
freemarker遍历list拼接字符串
最新推荐文章于 2022-08-25 11:04:41 发布