<update id="updateList" parameterType="java.util.List">
<foreach collection="list" item="item">
update message set isread=-sharp{item.isread} where id = -sharp{item.id};
</foreach>
</update>
when you batch update in this way, when there is only one list, it is normal, but when you have more than one piece of data in list, there will be more than one single quotation mark when the id parameter is set to the second entry. Why? No reason found