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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.cf.imes.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 生产单模块分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ModulePageReqVO extends PageParam {

    @Schema(description = "生产单号")
    private Long orderId;

    @Schema(description = "模块名称", example = "张三")
    private String name;

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

    @Schema(description = "模块组 ID", example = "19999")
    private Long groupId;

    @Schema(description = "报价项目 ID", example = "26198")
    private Integer offerId;

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

    @Schema(description = "模块宽度")
    private Double width;

    @Schema(description = "模块高度")
    private Double height;

    @Schema(description = "模块深度")
    private Double depth;

    @Schema(description = "模块复制数量")
    private Short multiNum;

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

    @Schema(description = "板材数量")
    private Short plateNum;

    @Schema(description = "异型数量")
    private Short unregularNum;

    @Schema(description = "文件名", example = "赵六")
    private String filename;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}