UpgradeGoodsMapper.xml 5.91 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.UpgradeGoodsMapper">

    <resultMap id="BaseResultMap" type="com.bs.order.entity.UpgradeGoods">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="commodityCode" column="commodity_code" jdbcType="VARCHAR"/>
            <result property="productTemplateId" column="product_template_id" jdbcType="INTEGER"/>
            <result property="baseGoodsId" column="base_goods_id" jdbcType="INTEGER"/>
            <result property="goodsCode" column="goods_code" jdbcType="VARCHAR"/>
            <result property="upgradeGoodsName" column="upgrade_goods_name" jdbcType="VARCHAR"/>
            <result property="specificationNameSequence" column="specification_name_sequence" jdbcType="VARCHAR"/>
            <result property="specificationTypeSequence" column="specification_type_sequence" jdbcType="VARCHAR"/>
            <result property="specificationData" column="specification_data" jdbcType="VARCHAR"/>
            <result property="specificationKey" column="specification_key" jdbcType="VARCHAR"/>
            <result property="scrmConfigId" column="scrm_config_id" jdbcType="INTEGER"/>
            <result property="stock" column="stock" jdbcType="INTEGER"/>
            <result property="shopPrice" column="shop_price" jdbcType="DECIMAL"/>
            <result property="maxUpgradeDiscount" column="max_upgrade_discount" jdbcType="DECIMAL"/>
            <result property="upgradePrice" column="upgrade_price" jdbcType="DECIMAL"/>
            <result property="retailPrice" column="retail_price" jdbcType="DECIMAL"/>
            <result property="extraCost" column="extra_cost" jdbcType="DECIMAL"/>
            <result property="incentiveType" column="incentive_type" jdbcType="TINYINT"/>
            <result property="incentiveCost" column="incentive_cost" jdbcType="DECIMAL"/>
            <result property="profitType" column="profit_type" jdbcType="TINYINT"/>
            <result property="profitValue" column="profit_value" jdbcType="DECIMAL"/>
            <result property="partnerProfitPer" column="partner_profit_per" jdbcType="DECIMAL"/>
            <result property="shopMinPrice" column="shop_min_price" jdbcType="DECIMAL"/>
            <result property="warrantyPeriod" column="warranty_period" jdbcType="DECIMAL"/>
            <result property="status" column="status" jdbcType="TINYINT"/>
            <result property="reviewStatus" column="review_status" jdbcType="TINYINT"/>
            <result property="serviceYears" column="service_years" jdbcType="TINYINT"/>
            <result property="warningValue" column="warning_value" jdbcType="DECIMAL"/>
            <result property="warningValueMax" column="warning_value_max" jdbcType="DECIMAL"/>
            <result property="thirdPartyCode" column="third_party_code" jdbcType="VARCHAR"/>
            <result property="entityCardFlag" column="entity_card_flag" jdbcType="CHAR"/>
            <result property="purchasePrice" column="purchase_price" jdbcType="DECIMAL"/>
            <result property="type" column="type" jdbcType="VARCHAR"/>
            <result property="position" column="position" jdbcType="VARCHAR"/>
            <result property="minSuitCarPrice" column="min_suit_car_price" jdbcType="DECIMAL"/>
            <result property="maxSuitCarPrice" column="max_suit_car_price" jdbcType="DECIMAL"/>
            <result property="kilometers" column="kilometers" jdbcType="INTEGER"/>
            <result property="djCost" column="dj_cost" jdbcType="DECIMAL"/>
            <result property="onShelfStatus" column="on_shelf_status" 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="thirdPartyName" column="third_party_name" jdbcType="VARCHAR"/>
            <result property="priceUnitType" column="price_unit_type" jdbcType="TINYINT"/>
            <result property="priceUnitName" column="price_unit_name" jdbcType="VARCHAR"/>
            <result property="purchaseCost" column="purchase_cost" jdbcType="DECIMAL"/>
            <result property="operationCoefficient" column="operation_coefficient" jdbcType="DECIMAL"/>
            <result property="operationCost" column="operation_cost" jdbcType="DECIMAL"/>
            <result property="applicableArea" column="applicable_area" jdbcType="VARCHAR"/>
            <result property="customerLabel" column="customer_label" jdbcType="VARCHAR"/>
            <result property="supplySource" column="supply_source" jdbcType="VARCHAR"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,commodity_code,product_template_id,base_goods_id,goods_code,upgrade_goods_name,
        specification_name_sequence,specification_type_sequence,specification_data,specification_key,scrm_config_id,
        stock,shop_price,max_upgrade_discount,upgrade_price,retail_price,
        extra_cost,incentive_type,incentive_cost,profit_type,profit_value,
        partner_profit_per,shop_min_price,warranty_period,status,review_status,
        service_years,warning_value,warning_value_max,third_party_code,entity_card_flag,
        purchase_price,type,position,min_suit_car_price,max_suit_car_price,
        kilometers,dj_cost,on_shelf_status,created_by,created_date,
        updated_by,updated_date,deleted_flag,third_party_name,price_unit_type,
        price_unit_name,purchase_cost,operation_coefficient,operation_cost,applicable_area,
        customer_label,supply_source,remark
    </sql>
</mapper>