freemarker中 The only legal comparisons are between two . 有关问题解决
freemarker.template.TemplateException: The only legal comparisons are between two numbers, two strings, or two dates.Left hand operand is a freemarker.template.SimpleNumberRight hand operand is a freemarker.template.SimpleScalar
其原因为左边与右边的类型不一样,将它们类型转换成一样就OK了