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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
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 OrgWorkerSaveReqVO {

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

    @Schema(description = "工位id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4727")
    @NotNull(message = "工位id不能为空")
    private Long orgId;
    @Schema(description = "工位类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "4727")
    private String orgType;

    @Schema(description = "工作日期", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime workDate;
    @Schema(description = "日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planDates;

    @Schema(description = "班别", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "班别不能为空")
    private Integer groupType;

    @Schema(description = "工人id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2095")
    @NotNull(message = "工人id不能为空")
    private Long workerId;

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

}