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

    @Schema(description = "维修单编号")
    private String repairCode;

    @Schema(description = "维修单名称", example = "王五")
    private String repairName;

    @Schema(description = "模具ID", example = "6979")
    private Long moldId;

    @Schema(description = "模具编码")
    private String moldCode;

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

    @Schema(description = "品牌")
    private String moldBrand;

    @Schema(description = "规格型号")
    private String moldSpec;

    @Schema(description = "模具类型", example = "1622")
    private Long moldTypeId;

    @Schema(description = "报修日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] requireDate;

    @Schema(description = "完成日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] finishDate;

    @Schema(description = "验收日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] confirmDate;

    @Schema(description = "维修结果")
    private String repairResult;

    @Schema(description = "维修人员")
    private String acceptedBy;

    @Schema(description = "验收人员")
    private String confirmBy;

    @Schema(description = "单据状态0-待完成 1-已完成", example = "1")
    private Integer status;

    @Schema(description = "备注")
    private String remark;

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


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