package com.cf.imes.module.executor.controller.admin.orderParts.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 = "管理后台 - 生产单配件表 order_parts_{N}分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderPartsPageReqVO extends PageParam {

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

    @Schema(description = "商品ID", example = "1195")
    private String goodsId;

    @Schema(description = "配件名称", example = "晨丰")
    private String name;

    @Schema(description = "材质")
    private String material;

    @Schema(description = "配件类型", example = "2")
    private String type;

    @Schema(description = "型号")
    private String model;

    @Schema(description = "规格")
    private String spec;

    @Schema(description = "品牌")
    private String brand;

    @Schema(description = "厂家")
    private String factory;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "价格", example = "29507")
    private Double price;

    @Schema(description = "是否复合部件：0 否 1 是")
    private Boolean isComposite;

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

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

}