从http://www.cnblogs.com/hyq0002013/p/6077847.html#undefined转
<update id="updateLicaiAllList" parameterType="java.util.List">
<foreach collection="list" item="item" index="index" open="begin" close="end;" separator="">
update tmi_licai_all t
set
t.est_amount=#{item.estAmount}
where t.licai_id = #{item.licaiId};
</foreach>
</update>
<foreach collection="list" item="item" index="index" open="begin" close="end;" separator="">
update tmi_licai_all t
set
t.est_amount=#{item.estAmount}
where t.licai_id = #{item.licaiId};
</foreach>
</update>