package com.wzj.soopin.order.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;
import org.dromara.common.excel.annotation.Excel;

import java.math.BigDecimal;

/**
 * 订单中所包含的商品 数据视图对象
 *
 * @author zcc
 */
@Schema(description = "订单中所包含的商品数据视图对象")
@Data
public class OrderItemVO extends BaseAudit {
    /** ID */
    @Schema(description = "ID")
    private Long id;

    /** 订单id */
    @Schema(description = "订单id")
    @Excel(name = "订单id")
    private Long orderId;

    /** PRODUCT_ID */
    @Schema(description = "PRODUCT_ID")
    @Excel(name = "PRODUCT_ID")
    private Long productId;

    /** 商品编码 */
    @Schema(description = "商品编码")
    @Excel(name = "商品编码")
    private String outProductId;

    /** 商品sku id */
    @Schema(description = "商品sku id")
    @Excel(name = "商品sku id")
    private Long skuId;

    /** sku编码 */
    @Schema(description = "sku编码")
    @Excel(name = "sku编码")
    private String outSkuId;

    /** 商品快照id */
    @Schema(description = "商品快照id")
    @Excel(name = "商品快照id")
    private Long productSnapshotId;

    /** sku快照id */
    @Schema(description = "sku快照id")
    @Excel(name = "sku快照id")
    private Long skuSnapshotId;

    /** 展示图片 */
    @Schema(description = "展示图片")
    @Excel(name = "展示图片")
    private String pic;

    /** PRODUCT_NAME */
    @Schema(description = "PRODUCT_NAME")
    @Excel(name = "PRODUCT_NAME")
    private String productName;

    /** 销售价格 */
    @Schema(description = "销售价格")
    @Excel(name = "销售价格")
    private BigDecimal salePrice;

    /** 采购价 */
    @Schema(description = "采购价")
    @Excel(name = "采购价")
    private BigDecimal purchasePrice;

    /** 购买数量 */
    @Schema(description = "购买数量")
    @Excel(name = "购买数量")
    private Integer quantity;

    /** 商品分类id */
    @Schema(description = "商品分类id")
    @Excel(name = "商品分类id")
    private Long productCategoryId;

    /** 商品sku属性:[{\"key\":\"颜色\",\"value\":\"颜色\"},{\"key\":\"容量\",\"value\":\"4G\"}] */
    @Schema(description = "商品sku属性:[{\"key\":\"颜色\",\"value\":\"颜色\"},{\"key\":\"容量\",\"value\":\"4G\"}]")
    @Excel(name = "商品sku属性:[{\"key\":\"颜色\",\"value\":\"颜色\"},{\"key\":\"容量\",\"value\":\"4G\"}]")
    private String spData;

    private String tenantId;

    private String tenantName;
}
