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 java.util.Date;

/**
 * 综合查询-设备使用追溯查询
 * @Author ma_sh
 * @create 2024/12/16 14:03
 */
@Data
public class MachineHistoryRecordBean {

    @ApiModelProperty(value = "协议id")
    private Integer agreementId;

    @ApiModelProperty(value = "协议号")
    @Excel(name = "协议号")
    private String agreementCode;

    @ApiModelProperty(value = "工程Id")
    private Integer proId;

    @ApiModelProperty(value = "实施单位")
    @Excel(name = "实施单位")
    private String impUnitName;

    @ApiModelProperty(value = "合同主体")
    @Excel(name = "合同主体")
    private String contractPart;

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

    @ApiModelProperty(value = "往来单位Id")
    private Integer unitId;


    @ApiModelProperty(value = "往来单位")
    @Excel(name = "往来单位")
    private String unitName;

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

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

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

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

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

    @ApiModelProperty(value = "领用人员")
    @Excel(name = "领用人员")
    private String leaseMan;

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

    @ApiModelProperty(value = "退料人员")
    @Excel(name = "退料人员")
    private String backMan;

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

    @ApiModelProperty(value = "状态")
    @Excel(name = "当前状态")
    private String statusName;

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

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

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

    private Long userId;
}
