<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="com.xjs.mall.order.dao.OrderItemDao">

	<!-- 可根据自己的需求，是否要使用 -->
    <resultMap type="com.xjs.mall.order.entity.OrderItemEntity" id="orderItemMap">
        <result property="id" column="id"/>
        <result property="orderId" column="order_id"/>
        <result property="orderSn" column="order_sn"/>
        <result property="spuId" column="spu_id"/>
        <result property="spuName" column="spu_name"/>
        <result property="spuPic" column="spu_pic"/>
        <result property="spuBrand" column="spu_brand"/>
        <result property="categoryId" column="category_id"/>
        <result property="skuId" column="sku_id"/>
        <result property="skuName" column="sku_name"/>
        <result property="skuPic" column="sku_pic"/>
        <result property="skuPrice" column="sku_price"/>
        <result property="skuQuantity" column="sku_quantity"/>
        <result property="skuAttrsVals" column="sku_attrs_vals"/>
        <result property="promotionAmount" column="promotion_amount"/>
        <result property="couponAmount" column="coupon_amount"/>
        <result property="integrationAmount" column="integration_amount"/>
        <result property="realAmount" column="real_amount"/>
        <result property="giftIntegration" column="gift_integration"/>
        <result property="giftGrowth" column="gift_growth"/>
    </resultMap>


</mapper>