#批量更新
<update id="mapperMethod" parameterType="java.util.List">
UPDATE `table_name`
SET `table_status` = 0
WHERE `table_id` IN
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")">
'${item}'
</foreach>
</update>
mybatis update
最新推荐文章于 2023-03-03 15:46:24 发布