mybatis遍历map
<update id="updateMessage" useGeneratedKeys="false" parameterType="java.util.Map">
update link_circuit
set
<foreach collection="updateMap" item="value" index="key" separator=",">
${key} = #{value}
</foreach>
where remark=#{updateMap.remark}
</update>
循环index标签获取key,item获取value,map.xxx直接获取mapkey对应的值