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

yongxinz

关注

阅读 57

2022-07-27

修改
<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)

0 0 举报