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 2025/3/7 9:23
 */
@Data
public class ScrapRecordInfo {

    @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 = "报废数量")
    @Excel(name = "报废数量", align = HorizontalAlignment.RIGHT)
    private BigDecimal scrapNum;

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

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

    @ApiModelProperty(value = "报废人员")
    @Excel(name = "报废人员")
    private String scrapBy;

    @ApiModelProperty(value = "审核人员")
    @Excel(name = "审核人员")
    private String auditBy;

    @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 scrapTime;

    @ApiModelProperty(value = "报废类型")
    @Excel(name = "报废类型")
    private String scrapType;

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