package cn.iocoder.yudao.module.common.controller.admin.moldticketmanagement.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 MoldTicketManagementPageReqVO extends PageParam {

    @Schema(description = "项目ID", example = "21368")
    private Long taskId;

    @Schema(description = "方案ID", example = "20459")
    private Long planId;

    @Schema(description = "单号")
    private String planNo;

    @Schema(description = "设备名称", example = "张三")
    private String moldName;

    @Schema(description = "类型(1-点检 2-保养)", example = "2")
    private String planType;

    @Schema(description = "计划配置名称", example = "赵六")
    private String configName;

    @Schema(description = "作业状态", example = "1")
    private Integer jobStatus;

    @Schema(description = "作业结果")
    private String jobResult;

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


    @Schema(description = "id集合导出用")
    private String ids;


    /**
     * 作业开始时间
     */
    private String taskTime;

    /**
     * 作业结束时间
     */
    private String taskEndTime;

    @Schema(description = "取消原因")
    private String cancelReason;

}