您的位置:首页 > 编程语言 > Java开发

There is no READABLE property named ‘type’ in class ‘java.lang.Integer’

2014-04-28 10:53 871 查看
错误原因:<!– 获取三项费用的基本标准 –>
<select id=”getThreeChargeStandard” parameterClass=”java.lang.Integer”
resultClass=”com.custody.bean.Code”>
select d.STANDARDVALUE, d.PERIOD from CODE d
<dynamic prepend=”where”>
<isNotNull prepend=”and” property=”type” >
d.codetype=#type#
</isNotNull>
</dynamic>
</select>
而我在action里是直接传值的:
chargeService.getThreeChargeStandard(4)
parameterClass类型是 Integer,它是没有属性的,因此,应该改为
<isNotNull prepend=”and” property=”value” >
d.codetype=#value#
</isNotNull>
Value是默认传值的。
不过,当是从jsp页面传值的话,依然可以使用前面的变量。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  There is no READABLE
相关文章推荐