package com.bonus.material.repair.domain.vo;

import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 修试查询-维修配件查询
 * @Author ma_sh
 * @create 2025/4/1 11:10
 */
@Data
public class RepairPartVo {
    /** ID */
    private Long id;

    @ApiModelProperty(value = "维修单号")
    @Excel(name = "维修单号")
    private String repairCode;

    @ApiModelProperty(value = "单位id")
    private Long unitId;

    @ApiModelProperty(value = "单位名称")
    @Excel(name = "退料单位")
    private String backUnitName;

    @ApiModelProperty(value="工程id")
    private Long proId;

    @ApiModelProperty(value="工程名称")
    @Excel(name = "工程名称")
    private String backProName;

    @ApiModelProperty(value = "类型名称")
    @Excel(name = "类型名称")
    private String typeName;

    @ApiModelProperty(value = "规格型号")
    @Excel(name = "规格型号")
    private String typeModelName;

    @ApiModelProperty(value = "设备编码")
    @Excel(name = "设备编码")
    private String maCode;

    @ApiModelProperty(value = "维修数量")
    @Excel(name = "维修数量")
    private BigDecimal repairNum;

    @ApiModelProperty(value = "计量单位")
    @Excel(name = "单位")
    private String unitName;

    @ApiModelProperty(value = "配件名称")
    @Excel(name = "配件名称")
    private String partName;

    @ApiModelProperty(value = "配件规格")
    @Excel(name = "配件规格")
    private String partModelName;

    @ApiModelProperty(value = "使用数量")
    @Excel(name = "使用数量")
    private BigDecimal partNum;

    @ApiModelProperty(value = "维修人员")
    @Excel(name = "维修人员")
    private String repairPerson;

    @ApiModelProperty(value = "维修时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修时间", dateFormat = "yyyy-MM-dd", width = 20)
    private Date repairTime;

    @ApiModelProperty(value="开始时间")
    private String startTime;

    @ApiModelProperty(value="结束时间")
    private String endTime;

    @ApiModelProperty(value="关键字")
    private String keyWord;

    private Long typeId;

    private Long taskId;

    private Long maId;
}
