MyBatis报错 Parameter '0' not found. Available parameters are [arg1, arg0, param1, param2]

来源:互联网 发布:许三观卖血记 知乎 编辑:程序博客网 时间:2024/05/21 10:10

1.修改

<update id="updateStatusById" parameterType="java.lang.Integer">updatenic_techsupportset status_id = #{0}where techsupport_id =#{1}</update>
<update id="updateStatusById" parameterType="java.lang.Integer">updatenic_techsupportset status_id = #{arg0}where techsupport_id =#{arg1}</update>
在MyBatis3.4.4版不能直接使用#{0}要使用 #{arg0}

阅读全文
0 0
原创粉丝点击