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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 生产单模块 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ModuleRespVO {

    @Schema(description = "模块 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17730")
    @ExcelProperty("模块 ID")
    private Long id;

    @Schema(description = "生产单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("生产单号")
    private Long orderNo;

    @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("模块名称")
    private String name;

    @Schema(description = "父节点 ID，模块间根据module_type构成树形结构", requiredMode = Schema.RequiredMode.REQUIRED, example = "11108")
    @ExcelProperty("父节点 ID，模块间根据module_type构成树形结构")
    private Long parentId;

    @Schema(description = "模块组 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19999")
    @ExcelProperty("模块组 ID")
    private Long groupId;

    @Schema(description = "报价项目 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26198")
    @ExcelProperty("报价项目 ID")
    private Integer offerId;

    @Schema(description = "模块类型，1 房间 2 柜体 3 加工组类型 4 加工组名", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("模块类型，1 房间 2 柜体 3 加工组类型 4 加工组名")
    private Integer type;

    @Schema(description = "模块宽度", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("模块宽度")
    private Double width;

    @Schema(description = "模块高度", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("模块高度")
    private Double height;

    @Schema(description = "模块深度", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("模块深度")
    private Double depth;

    @Schema(description = "模块复制数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("模块复制数量")
    private Short multiNum;

    @Schema(description = "源模块 ID，模块是复制的，则为源模块ID，否则为0", requiredMode = Schema.RequiredMode.REQUIRED, example = "19669")
    @ExcelProperty("源模块 ID，模块是复制的，则为源模块ID，否则为0")
    private Long sourceId;

    @Schema(description = "板材数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("板材数量")
    private Short plateNum;

    @Schema(description = "异型数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("异型数量")
    private Short unregularNum;

    @Schema(description = "文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("文件名")
    private String filename;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}