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

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;

@Schema(description = "管理后台 - 记录表新增/修改 Request VO")
@Data
public class RecordTemplateSaveReqVO {

    @Schema(description = "组织id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1950")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    private String name;

    @Schema(description = "组织id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4004")
    @NotNull(message = "组织id不能为空")
    private Long organizationId;

    @Schema(description = "对应机台id", example = "30372")
    private Long machineId;

    @Schema(description = "班组id", example = "15655")
    private Long workTeamId;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    @Schema(description = "组长上午审批id")
    private Long groupManagerApproveId1;

    @Schema(description = "组长下午审批id")
    private Long groupManagerApproveId2;

    @Schema(description = "主管上午审批id")
    private Long productionManagerApproveId1;

    @Schema(description = "主管下午审批id")
    private Long productionManagerApproveId2;

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

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

    @Schema(description = "记录类型（工序类型）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "工序类型不能为空")
    private String recordType;

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

    @Schema(description = "是否启用")
    private Boolean isEnable;

}