The only legal comparisons are between two numbers, two strings, or two dates.

The only legal comparisons are between two numbers, two strings, or two dates.
Left  hand operand is a freemarker.template.TemplateBooleanModel$1
Right hand operand is a freemarker.template.SimpleNumber

上面的报错说的是  表达式左右两边 的类型应该一致。。