0
点赞
收藏
分享

微信扫一扫

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

yongxinz 2022-07-27 阅读 57

修改
<update id="updateStatusById" parameterType="java.lang.Integer">
update
nic_techsupport
set status_id = #{0}
where techsupport_id =#{1}
</update>

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




举报

相关推荐

0 条评论