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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
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
public class ProduceReportDetailSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15203")
    private Long id;

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

    @Schema(description = "生产计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22861")
    private Long planId;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14517")
    private Long productId;

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

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

    @Schema(description = "成品率")
    private BigDecimal qualityRate;

    @Schema(description = "废品原因", example = "不好")
    private String wasteReason;

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

    @Schema(description = "打包数量")
    private BigDecimal packageNumber;

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

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean isEnable;

    @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 = "计件时间")
    private String reportTime;

    @Schema(description = "报工状态", example = "1")
    private Integer reportStatus;

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

    @Schema(description = "报工日期字符串")
    private String  reportDateString;
}