MyBatis Oracle批量更新
1 <update id="updateProductSerialNo" parameterType="java.util.List"> 2 <foreach collection="list" item="it" separator=";" open="begin" close="end;"> 3 update ERP_PRODUCT_ID_NAME 4 set SERIAL_NO = #{it.serialNo,jdbcType=DECIMAL} 5 where PRODUCT_ID = #{it.productId,jdbcType=VARCHAR} 6 </foreach> 7 </update>