<update id="updateTotalState" parameterType="java.util.List"> <foreach collection="list" item="item" index="index" open="" close="" separator=";"> UPDATE sp_stock <set> `total_state` = 2 </set> WHERE `id` = #{item} </foreach> </update>
原文地址:https://www.cnblogs.com/smiledGo/p/11731890.html
时间: 2024-11-12 18:19:18