<!--付款 批量 修改賬單狀態-->
<update id="editbillpayALL" parameterType="java.util.List">
UPDATE
tb_bill
SET
STATE = 'eda58d7280554dd9918207d27e2d4654'
WHERE
ID IN <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
#{item}
</foreach>
</update>
調試很久,一直寫的
#{item.id} 當傳的list 的時候 直接寫
#{item}即可