freemark 标签几个实战用法
关键 <#if v_has_next>,</#if>
<#list sources as source> ${source.prefix} { <#list source.properties as value> <#if value.type=="java.lang.String" || value.type=="Text"> ${value.field} = "${value.value}" <#elseif value.type=="java.lang.Boolean"> ${value.field} = ${value.value?string('true','false')} <#elseif value.type=="java.lang.Integer" || value.type=="java.lang.Long"> ${value.field} = ${value.value?c} <#elseif value.type=="java.util.List<java.lang.String>"> ${value.field} = [<#list value.value as v>"${v?trim}"<#if v_has_next>,</#if></#list>] </#if> </#list> <#list source.resultTableName as rt> result_table_name = "${rt}" </#list> } </#list>