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

import com.bonus.common.biz.domain.BmFileInfo;
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;
import java.util.List;

/**
 * 报废列表一级页面
 * @Author ma_sh
 * @create 2025/3/20 16:10
 */
@Data
public class ScrapInfo {

    private Long id;

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

    private Long taskId;

    private Long typeId;

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

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

    @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 String maCode;

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

    @ApiModelProperty(value = "报废费用")
    @Excel(name = "报废费用")
    private BigDecimal scrapPrice;

    @ApiModelProperty(value = "报废原因")
    @Excel(name = "报废原因")
    private String scrapReason;

    @ApiModelProperty(value = "报废图片")
    private List<BmFileInfo> fileList;

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

    @ApiModelProperty(value = "报废单号")
    @Excel(name = "报废单号")
    private String scrapCode;

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

    @ApiModelProperty(value = "报废时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "报废时间", width = 20, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date scrapTime;

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

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

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

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

    @ApiModelProperty(value = "原值")
    private BigDecimal buyPrice;

    /** 维修ID */
    @ApiModelProperty(value = "维修ID")
    private Long repairId;

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