package com.cf.imes.module.executor.controller.admin.plan.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static com.cf.imes.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

/**
 * @author there
 * 排单页面生产单VO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderRespVOCopy {
    @Schema(description = "生产单id")
    private Long orderId;
    @Schema(description = "自定义单号")
    private String defineId;
    @Schema(description = "客户")
    private String customer;
    @Schema(description = "地址")
    private String address;
    @Schema(description = "订单日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date orderDate;
    @Schema(description = "交付日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date deliveryDate;
    @Schema(description = "片数")
    private int num;
    @Schema(description = "平方")
    private BigDecimal area = new BigDecimal("0");
//    @Schema(description = "商品id")
//    private String goodsId;
//    @Schema(description = "商品名称")
//    private String goodsName;

    @Schema(description = "订单对应的板件的信息")
    private List<PlatePage> platePages;

//    @Schema(description = "颜色")
//    private String color;
//    @Schema(description = "材质：颗粒板、欧松板、多层板、生态板、禾香板、密度板、实木、铝蜂窝板、铝塑板")
//    private String material;
}