67,516
社区成员
发帖
与我相关
我的任务
分享
FreeMarker template error!
The only legal comparisons are between two numbers, two strings, or two dates.
Left hand operand is a freemarker.ext.beans.NumberModel
Right hand operand is a freemarker.template.SimpleScalar
The problematic instruction:
----------
==> if (list.newstype.id==typeid) [on line 43, column 49 in WEB-INF/inc.ftl]
<#macro indexNews titlelength contLength typeid showCount type>
<#if frontNews??>
<#assign count = 0>
<#list frontNews as list>
<#if (type=="cptj")>
<#if (count<showCount)>
<#if (list.newstype.id==typeid)>
<#assign count = count+1>
<p>
……………………………………………………后面的就省略了