package com.hzs.sale.wares.vo;

import com.hzs.common.core.annotation.Excel;
import com.hzs.common.core.utils.StringUtils;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Description: 三方商品统计VO
 * @Author: jiang chao
 * @Time: 2023/7/21 17:34
 * @Classname: WaresStatisticsVO
 * @PackageName: com.hzs.sale.wares.vo
 */
@Data
public class WaresStatisticsVO {

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String productName;

    /**
     * 商品分类
     */
    @Excel(name = "商品分类")
    private String titleCategory;

    public String getTitleCategory() {
        String str = "";
        if (StringUtils.isNotEmpty(this.titleCategoryOne)) {
            str += this.titleCategoryOne;
        }
        if (StringUtils.isNotEmpty(this.titleCategoryTwo)) {
            str += "-" + this.titleCategoryTwo;
        }
        if (StringUtils.isNotEmpty(this.titleCategoryThree)) {
            str += "-" + this.titleCategoryThree;
        }
        return str;
    }

    /**
     * 一级分类名称
     */
    private String titleCategoryOne;
    /**
     * 一级分类名称
     */
    private String titleCategoryTwo;
    /**
     * 一级分类名称
     */
    private String titleCategoryThree;
    /**
     * 商品规格
     */
    @Excel(name = "商品规格")
    private String specValueNames;

    /**
     * 商品单价
     */
    @Excel(name = "商品单价(¥)")
    private BigDecimal price;

    /**
     * 商品业绩
     */
    @Excel(name = "业绩(¥)")
    private BigDecimal achieve;
    /**
     * 商品业绩（美元）
     */
    @Excel(name = "业绩($)")
    private BigDecimal achieveDollar;


    /**
     * 销量
     */
    @Excel(name = "销量")
    private Integer realSale;

    /**
     * 销售额
     */
    @Excel(name = "销售额")
    private BigDecimal saleAmount;

}
