PortalOrderItemDao.xml 1.5 KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.macro.mall.portal.dao.PortalOrderItemDao">
  4. <insert id="insertList">
  5. insert into oms_order_item (order_id, order_sn, product_id,
  6. product_pic, product_name, product_brand,
  7. product_sn, product_price, product_quantity,
  8. product_sku_id, product_category_id, product_sku_code,promotion_name,
  9. promotion_amount, coupon_amount, integration_amount,
  10. real_amount,product_attr) values
  11. <foreach collection="list" item="item" separator="," index="index">
  12. (#{item.orderId,jdbcType=BIGINT}, #{item.orderSn,jdbcType=VARCHAR}, #{item.productId,jdbcType=BIGINT},
  13. #{item.productPic,jdbcType=VARCHAR}, #{item.productName,jdbcType=VARCHAR}, #{item.productBrand,jdbcType=VARCHAR},
  14. #{item.productSn,jdbcType=VARCHAR}, #{item.productPrice,jdbcType=DECIMAL}, #{item.productQuantity,jdbcType=INTEGER},
  15. #{item.productSkuId,jdbcType=BIGINT}, #{item.productCategoryId,jdbcType=BIGINT}, #{item.productSkuCode,jdbcType=VARCHAR},
  16. #{item.promotionName,jdbcType=VARCHAR},
  17. #{item.promotionAmount,jdbcType=DECIMAL}, #{item.couponAmount,jdbcType=DECIMAL},
  18. #{item.integrationAmount,jdbcType=DECIMAL},
  19. #{item.realAmount,jdbcType=DECIMAL},#{item.productAttr,jdbcType=VARCHAR})
  20. </foreach>
  21. </insert>
  22. </mapper>