package com.bonus.material.basic.domain;

import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 综合查询在修数量详情
 * @Author ma_sh
 * @create 2024/12/19 13:09
 */
@Data
public class RepairStorageInfo {

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "机具名称")
    @Excel(name = "机具名称")
    private String typeName;

    @ApiModelProperty(value = "规格ID")
    private Integer typeId;

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

    @ApiModelProperty(value = "定损数量")
    private BigDecimal dsNum;

    @ApiModelProperty(value = "在修数量")
    @Excel(name = "数量", align = HorizontalAlignment.RIGHT)
    private BigDecimal repairNum;

    @ApiModelProperty(value = "购置单价")
    @Excel(name = "原值（元）", align = HorizontalAlignment.RIGHT)
    private BigDecimal buyPrice;

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

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

    @ApiModelProperty(value = "操作人")
    @Excel(name = "操作人")
    private String creator;

    @ApiModelProperty(value = "退料时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "退料时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date leaseTime;

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

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

    @ApiModelProperty(value = "维修类型 1 定损 2 在修 3 修试待审核")
    private Integer type;
}
