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

import cn.iocoder.yudao.module.mes.dal.dataobject.producereport.ProduceReportDetailDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 生产报工单新增/修改 Request VO")
@Data
public class ProduceReportSaveReqVO {

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

    @Schema(description = "流程实例编号", example = "12049")
    private String processInstanceId;

    @Schema(description = "编号")
    private String reportCode;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19983")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "工序ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28795")
    @NotNull(message = "工序ID不能为空")
    private Long orgId;

    @Schema(description = "工序", example = "2")
    private String orgType;

    @Schema(description = "计件时段")
    private String reportTime;

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

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

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

    @Schema(description = "班别", example = "1")
    private Integer groupType;

    @Schema(description = "报工类型", example = "1")
    private String reportType;

    @Schema(description = "报工日期")
    private LocalDateTime reportDate;

    @Schema(description = "生产报工明细列表")
    private List<ProduceReportDetailDO> produceReportDetails;
    @Schema(description = "报工日期字符串")
    private String  reportDateString;

    @Schema(description = "加班时长")
    private BigDecimal plusTime;
}