package cn.iocoder.yudao.module.mes.controller.admin.producereportplan.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.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 ReportPlanViewReqVO extends PageParam {

    @Schema(description = "报工单id", example = "27172")
    private Long reportId;

    @Schema(description = "计划id", example = "30035")
    private Long planId;

    @Schema(description = "产品ID", example = "9987")
    private Long productId;

    @Schema(description = "成品数量")
    private BigDecimal qualityNumberPlan;

    @Schema(description = "废品数量")
    private BigDecimal wasteNumberPlan;

    @Schema(description = "计件时间")
    private BigDecimal reportTimePlan;

    @Schema(description = "总时长")
    private BigDecimal totalTimePlan;

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

    @Schema(description = "用户ID", example = "23386")
    private Long userId;

    @Schema(description = "组织ID", example = "1329")
    private Long orgId;

    @Schema(description = "总时长")
    private BigDecimal totalTime;

    @Schema(description = "成品数量")
    private BigDecimal qualityNumber;

    @Schema(description = "废品数量")
    private BigDecimal wasteNumber;

    @Schema(description = "总数量")
    private BigDecimal totalNumber;

    @Schema(description = "报工日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] reportDate;

    @Schema(description = "报工状态", example = "1")
    private Integer reportStatus;
    @Schema(description = "计件时间", example = "10:10-12:00,14:10-16:10")
    private BigDecimal reportTime;

    @Schema(description = "工序类型")
    private String orgType;
    /**
     * 报工类型
     */
    @Schema(description = "报工类型")
    private String reportType;

    @Schema(description = "班别", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer groupType;
}