<?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.WeiGoodsSkuMapper">

    <resultMap id="BaseResultMap" type="cn.qihangerp.model.entity.WeiGoodsSku">
            <id property="id" column="id" jdbcType="BIGINT"/>
            <result property="shopId" column="shop_id" jdbcType="BIGINT"/>
            <result property="productId" column="product_id" jdbcType="VARCHAR"/>
            <result property="skuId" column="sku_id" jdbcType="VARCHAR"/>
            <result property="outSkuId" column="out_sku_id" jdbcType="VARCHAR"/>
            <result property="title" column="title" jdbcType="VARCHAR"/>
            <result property="thumbImg" column="thumb_img" jdbcType="VARCHAR"/>
            <result property="salePrice" column="sale_price" jdbcType="INTEGER"/>
            <result property="stockNum" column="stock_num" jdbcType="INTEGER"/>
            <result property="skuCode" column="sku_code" jdbcType="VARCHAR"/>
            <result property="status" column="status" jdbcType="INTEGER"/>
            <result property="skuAttr" column="sku_attr" jdbcType="VARCHAR"/>
            <result property="skuAttrs" column="sku_attrs" jdbcType="VARCHAR"/>
            <result property="skuDeliverInfo" column="sku_deliver_info" jdbcType="VARCHAR"/>
            <result property="erpGoodsId" column="erp_goods_id" jdbcType="BIGINT"/>
            <result property="erpGoodsSkuId" column="erp_goods_sku_id" jdbcType="BIGINT"/>
            <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,product_id,
        sku_id,out_sku_id,title,
        thumb_img,sale_price,stock_num,
        sku_code,status,sku_attr,
        sku_attrs,sku_deliver_info,erp_goods_id,
        erp_goods_sku_id,create_time,update_time
    </sql>
</mapper>
