package com.cf.imes.module.system.controller.admin.process.vo.process;

import lombok.*;
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 = "管理后台 - 工序信息表 process分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProcessPageReqVO extends PageParam {

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

    @Schema(description = "计件工资")
    private Double pieceRate;

    @Schema(description = "计件类型：1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比", example = "1")
    private Integer pieceType;

    @Schema(description = "工序类型：0 全部加工 1 开料 2 部件加工 3 异形封边 4 分堆 5 打包 6 出库 7 组件加工 8 板材", example = "2")
    private Integer type;

    @Schema(description = "是否推送终端客户：0 否 1 是")
    private Boolean isCustom;

    @Schema(description = "是否推送经销商：0 否 1 是")
    private Boolean isDealer;

    @Schema(description = "排序优先级")
    private Short sort;

    @Schema(description = "小时产量")
    private Double hourCapacity;

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

    @Schema(description = "是否启用：0 否 1 是")
    private Boolean isEnabled;

    @Schema(description = "准备时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Double[] prepareTime;

    @Schema(description = "描述", example = "随便")
    private String description;

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

    @Schema(description = "用户id查询")
    private String userId;

    @Schema(description = "组织id")
    private Long organId;

}