sss

<insert id="saveImageUrlByList" parameterType="java.util.List">
insert into t_product_color_imgurl_mapping(product_id,color,img_url)values(
<foreach collection="list" item="item" index="index" separator=",">
(#{item.productID,jdbcType=VARCHAR},#{item.color,jdbcType=VARCHAR},#{item.imageUrl,jdbcType=VARCHAR})
</foreach>
)
</insert>

posted @ 2017-08-27 15:47  跨境电商杂货铺  阅读(174)  评论(0编辑  收藏  举报