package com.storlead.sales.pojo.dto.sku;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SkuDetailAddDTO", description = "产品详情添加DTO")
public class SkuDetailAddDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "固态产品SKU主键(领存表主键)")
    @TableField("ssd_sku_id")
    private Long ssdSkuId;

    @ApiModelProperty(value = "(关联)产品类型ID")
    @TableField("ssd_product_type_id")
    private Integer ssdProductTypeId;

    @ApiModelProperty(value = "sku内部唯一编码")
    @TableField("ssd_sku_code")
    private String ssdSkuCode;

    @ApiModelProperty(value = "单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "数量")
    @TableField("number")
    private Integer number;

    @ApiModelProperty(value = "订单金额")
    @TableField("order_amt")
    private BigDecimal orderAmt;

    @ApiModelProperty(value = "预计生产天数")
    @TableField("estimate_day")
    private Integer estimateDay;

    @ApiModelProperty(value = "详情（JSON数据）")
    @TableField("detail")
    private String detail;
}
