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

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

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

@Schema(description = "管理后台 - 模具维保新增/修改 Request VO")
@Data
public class MoldRecordSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30464")
    private Long id;
    @Schema(description = "单号")
    private String code;
    @Schema(description = "流程ID")
    private String flowCode;

    @Schema(description = "模具型号ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17427")
    @NotNull(message = "模具型号ID不能为空")
    private Long brandId;

    @Schema(description = "模具ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21232")
    @NotNull(message = "模具ID不能为空")
    private Long moldId;

    @Schema(description = "前模具ID", example = "23487")
    private Long oldMoldId;

    @Schema(description = "机台ID", example = "1825")
    private Long machineId;

    @Schema(description = "负责人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27306")
    @NotNull(message = "负责人ID不能为空")
    private Long userId;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "单据类型不能为空")
    private String recordType;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private String recordStatus;

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

    @Schema(description = "模具维保明细列表")
    private List<MoldRecordSubjectDetailDO> moldRecordSubjectDetails;
    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;
}