关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 14279|回复: 1

数据字典的问题

[复制链接]
发表于 2013-10-31 13:48:46 | 显示全部楼层 |阅读模式
通过online coding创建表单,填写字典表的相关信息:
QQ图片20131031134208.jpg
如果code字段值是int类型,在查看表单列表页面点击“录入”,会弹出空白页面,
后台报错如下:

JEECG-上海-国明(592885920) 2013-10-30 22:06:10查看前后消息
[freemarker.runtime]Template processing error: "The only legal comparisons are between two numbers, two strings, or two dates.\nLeft  hand operand is a freemarker.template.SimpleNumber\nRight hand operand is a freemarker.template.SimpleScalar\n"

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

The problematic instruction:
----------
==> if dictdata.typecode=="${data['${tableName}']['${po.field_name}']?if_exists?html}" [on line 97, column 73 in jform_fdc_pro_base]
in user-directive DictData [on line 93, column 57 in jform_fdc_pro_base]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateException: The only legal comparisons are between two numbers, two strings, or two dates.
Left  hand operand is a freemarker.template.SimpleNumber
Right hand operand is a freemarker.template.SimpleScalar


......

当把字段code类型设置为String就正常了,具体原因不清楚,等待高手解答!
[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\592885920\QQ\WinTemp\RichOle\I%0]1`~1W~$45YITD89PV@B.jpg[/img]

发表于 2013-10-31 19:50:40 | 显示全部楼层
字典表的类型还是尽量字符把
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表