GoodsInfoMapper.xml 3.87 KB
<?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.bs.order.mapper.GoodsInfoMapper">

    <resultMap id="BaseResultMap" type="com.bs.order.entity.GoodsInfo">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="userId" column="user_id" jdbcType="VARCHAR"/>
            <result property="merchantId" column="merchant_id" jdbcType="INTEGER"/>
            <result property="goodsName" column="goods_name" jdbcType="VARCHAR"/>
            <result property="goodsType" column="goods_type" jdbcType="INTEGER"/>
            <result property="goodsTypeName" column="goods_type_name" jdbcType="VARCHAR"/>
            <result property="secondaryGoodsType" column="secondary_goods_type" jdbcType="INTEGER"/>
            <result property="secondaryGoodsTypeName" column="secondary_goods_type_name" jdbcType="VARCHAR"/>
            <result property="thirdLevelGoodsType" column="third_level_goods_type" jdbcType="INTEGER"/>
            <result property="thirdLevelGoodsTypeName" column="third_level_goods_type_name" jdbcType="VARCHAR"/>
            <result property="brandMerchantCode" column="brand_merchant_code" jdbcType="VARCHAR"/>
            <result property="brandMerchantName" column="brand_merchant_name" jdbcType="VARCHAR"/>
            <result property="goodsCode" column="goods_code" jdbcType="VARCHAR"/>
            <result property="sapCode" column="sap_code" jdbcType="VARCHAR"/>
            <result property="retailPrice" column="retail_price" jdbcType="DECIMAL"/>
            <result property="maxRetailDiscount" column="max_retail_discount" jdbcType="DECIMAL"/>
            <result property="shopPrice" column="shop_price" jdbcType="DECIMAL"/>
            <result property="thumbUrl" column="thumb_url" jdbcType="VARCHAR"/>
            <result property="videoUrl" column="video_url" jdbcType="VARCHAR"/>
            <result property="status" column="status" jdbcType="TINYINT"/>
            <result property="convertedValue" column="converted_value" jdbcType="DECIMAL"/>
            <result property="goodsSource" column="goods_source" jdbcType="TINYINT"/>
            <result property="scrmFlag" column="scrm_flag" jdbcType="CHAR"/>
            <result property="scrmServiceCode" column="scrm_service_code" jdbcType="VARCHAR"/>
            <result property="providerId" column="provider_id" jdbcType="INTEGER"/>
            <result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
            <result property="createdDate" column="created_date" jdbcType="TIMESTAMP"/>
            <result property="updatedBy" column="updated_by" jdbcType="VARCHAR"/>
            <result property="updatedDate" column="updated_date" jdbcType="TIMESTAMP"/>
            <result property="deletedFlag" column="deleted_flag" jdbcType="CHAR"/>
            <result property="supplierCode" column="supplier_code" jdbcType="VARCHAR"/>
            <result property="supplierName" column="supplier_name" jdbcType="VARCHAR"/>
            <result property="sceneType" column="scene_type" jdbcType="TINYINT"/>
            <result property="sceneName" column="scene_name" jdbcType="VARCHAR"/>
            <result property="accessoryType" column="accessory_type" jdbcType="TINYINT"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,user_id,merchant_id,goods_name,goods_type,goods_type_name,
        secondary_goods_type,secondary_goods_type_name,third_level_goods_type,third_level_goods_type_name,brand_merchant_code,
        brand_merchant_name,goods_code,sap_code,retail_price,max_retail_discount,
        shop_price,thumb_url,video_url,status,converted_value,
        goods_source,scrm_flag,scrm_service_code,provider_id,created_by,
        created_date,updated_by,updated_date,deleted_flag,supplier_code,
        supplier_name,scene_type,scene_name,accessory_type
    </sql>
</mapper>