package com.bonus.material.basic.domain.report;

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/1/23 10:31
 */
@Data
public class RepairInfo {

    private Long id;

    @ApiModelProperty(value = "是否导出 0 是，1 否")
    private Integer isExport;

    private Long taskId;

    private Long typeId;

    @ApiModelProperty(value = "物资名称")
    @Excel(name = "物资名称")
    private String typeName;

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

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

    @ApiModelProperty(value = "退料数量")
    @Excel(name = "退料数量")
    private BigDecimal backNum;

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

    @ApiModelProperty(value = "待报废数量")
    @Excel(name = "待报废数量")
    private BigDecimal pendingScrapNum;

    @ApiModelProperty(value = "待修数量")
    @Excel(name = "待修数量")
    private BigDecimal pendingRepairNum;

    @ApiModelProperty(value = "退料日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "退料日期", width = 20, dateFormat = "yyyy-MM-dd")
    private Date backTime;

    @ApiModelProperty(value = "维修日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "维修日期", width = 20, dateFormat = "yyyy-MM-dd")
    private Date repairTime;

    @ApiModelProperty(value = "领料单位")
    @Excel(name = "领料单位")
    private String leaseUnitName;

    @ApiModelProperty(value = "领料工程")
    @Excel(name = "领料工程")
    private String leaseProjectName;

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

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

    @ApiModelProperty(value = "管理方式")
    private String manageType;

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

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

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

    @ApiModelProperty(value = "用户id")
    private Long userId;

    private String nickName;
}
