<?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="cn.qihangerp.mapper.OGoodsSkuMapper">

    <resultMap id="BaseResultMap" type="cn.qihangerp.model.entity.OGoodsSku">
            <id property="id" column="id" jdbcType="BIGINT"/>
            <result property="shopId" column="shop_id" jdbcType="BIGINT"/>
            <result property="goodsId" column="goods_id" jdbcType="BIGINT"/>
            <result property="outerErpGoodsId" column="outer_erp_goods_id" jdbcType="VARCHAR"/>
            <result property="outerErpSkuId" column="outer_erp_sku_id" jdbcType="VARCHAR"/>
            <result property="goodsName" column="goods_name" jdbcType="VARCHAR"/>
            <result property="goodsNum" column="goods_num" jdbcType="VARCHAR"/>
            <result property="skuName" column="sku_name" jdbcType="VARCHAR"/>
            <result property="skuCode" column="sku_code" jdbcType="VARCHAR"/>
            <result property="colorLabel" column="color_label" jdbcType="VARCHAR"/>
            <result property="colorId" column="color_id" jdbcType="BIGINT"/>
            <result property="colorValue" column="color_value" jdbcType="VARCHAR"/>
            <result property="colorImage" column="color_image" jdbcType="VARCHAR"/>
            <result property="sizeLabel" column="size_label" jdbcType="VARCHAR"/>
            <result property="sizeId" column="size_id" jdbcType="BIGINT"/>
            <result property="sizeValue" column="size_value" jdbcType="VARCHAR"/>
            <result property="styleLabel" column="style_label" jdbcType="VARCHAR"/>
            <result property="styleId" column="style_id" jdbcType="BIGINT"/>
            <result property="styleValue" column="style_value" jdbcType="VARCHAR"/>
            <result property="barCode" column="bar_code" jdbcType="VARCHAR"/>
            <result property="purPrice" column="pur_price" jdbcType="DECIMAL"/>
            <result property="retailPrice" column="retail_price" jdbcType="DECIMAL"/>
            <result property="unitCost" column="unit_cost" jdbcType="DECIMAL"/>
            <result property="groupPrice" column="group_price" jdbcType="DECIMAL"/>
            <result property="stockQty" column="stock_qty" jdbcType="INTEGER"/>
            <result property="weightGram" column="weight_gram" jdbcType="BIGINT"/>
            <result property="skuImageUrl" column="sku_image_url" jdbcType="VARCHAR"/>
            <result property="canonicalExt" column="canonical_ext" jdbcType="LONGVARCHAR"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
            <result property="status" column="status" jdbcType="TINYINT"/>
            <result property="lowQty" column="low_qty" jdbcType="INTEGER"/>
            <result property="highQty" column="high_qty" jdbcType="INTEGER"/>
            <result property="volume" column="volume" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,shop_id,goods_id,outer_erp_goods_id,
        outer_erp_sku_id,goods_name,goods_num,
        sku_name,sku_code,color_label,
        color_id,color_value,color_image,
        size_label,size_id,size_value,
        style_label,style_id,style_value,
        bar_code,pur_price,retail_price,
        unit_cost,group_price,stock_qty,weight_gram,sku_image_url,canonical_ext,remark,status,
        low_qty,high_qty,volume,
        create_time,update_time
    </sql>
</mapper>
