package com.ruoyi.jarvis.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import java.math.BigDecimal;

/**
 * 产品京东配置对象
 * 
 * @author ruoyi
 */
public class ProductJdConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品型号 */
    private String productModel;

    /** 京东链接 */
    private String jdUrl;

    /** 佣金（旧字段，保留兼容） */
    private BigDecimal commission;

    /** 佣金（收取） - 从客户收取的佣金 */
    private BigDecimal commissionReceive;

    /** 佣金（支付） - 支付给下单人的佣金 */
    private BigDecimal commissionPay;

    /** 参考售价（直款渠道） */
    private BigDecimal sellingPriceDirect;

    /** 参考售价（闲鱼渠道，订单侧仍会 ×0.984 计算实收） */
    private BigDecimal sellingPriceXianyu;

    public ProductJdConfig() {
    }

    public ProductJdConfig(String productModel, String jdUrl, BigDecimal commission) {
        this.productModel = productModel;
        this.jdUrl = jdUrl;
        this.commission = commission;
    }

    public String getProductModel() {
        return productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel;
    }

    public String getJdUrl() {
        return jdUrl;
    }

    public void setJdUrl(String jdUrl) {
        this.jdUrl = jdUrl;
    }

    public BigDecimal getCommission() {
        return commission;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }

    public BigDecimal getCommissionReceive() {
        return commissionReceive;
    }

    public void setCommissionReceive(BigDecimal commissionReceive) {
        this.commissionReceive = commissionReceive;
    }

    public BigDecimal getCommissionPay() {
        return commissionPay;
    }

    public void setCommissionPay(BigDecimal commissionPay) {
        this.commissionPay = commissionPay;
    }

    public BigDecimal getSellingPriceDirect() {
        return sellingPriceDirect;
    }

    public void setSellingPriceDirect(BigDecimal sellingPriceDirect) {
        this.sellingPriceDirect = sellingPriceDirect;
    }

    public BigDecimal getSellingPriceXianyu() {
        return sellingPriceXianyu;
    }

    public void setSellingPriceXianyu(BigDecimal sellingPriceXianyu) {
        this.sellingPriceXianyu = sellingPriceXianyu;
    }

    @Override
    public String toString() {
        return "ProductJdConfig{" +
                "productModel='" + productModel + '\'' +
                ", jdUrl='" + jdUrl + '\'' +
                ", commission=" + commission +
                ", commissionReceive=" + commissionReceive +
                ", commissionPay=" + commissionPay +
                ", sellingPriceDirect=" + sellingPriceDirect +
                ", sellingPriceXianyu=" + sellingPriceXianyu +
                '}';
    }
}

