package com.hzs.common.domain.sale.wares;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 极差明细表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_WARES_RANGE")
@KeySequence("BD_WARES_RANGE_SEQ")
public class BdWaresRange extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 主表主键
     */
    @TableField("PK_WARES")
    private Integer pkWares;

    /**
     * 商品主键
     */
    @TableField("PK_PRODUCT")
    private Integer pkProduct;

    /**
     * 商品明细主键
     */
    @TableField("PK_WARES_DETAIL")
    private Integer pkWaresDetail;

    /**
     * 规格sku主键
     */
    @TableField("PK_WARES_SPECS_SKU")
    private Integer pkWaresSpecsSku;

    /**
     * 级别
     */
    @TableField("PK_RANGE")
    private Integer pkRange;

    /**
     * 价格
     */
    @TableField("PRICE")
    private BigDecimal price;

    /**
     * 业绩
     */
    @TableField("ACHIEVE")
    private BigDecimal achieve;

    /**
     * 商品bv
     */
    @TableField("ASS_ACHIEVE")
    private BigDecimal assAchieve;

    /**
     *
     */
    @TableField(exist = false)
    private Integer isGift;
}
