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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

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
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RecordTemplatePageReqVO extends PageParam {

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

    @Schema(description = "组织id", example = "4004")
    private Long organizationId;

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

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

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    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 = "状态", example = "2")
    private Integer status;

    @Schema(description = "记录类型（工序类型）", example = "1")
    private String recordType;

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}