package com.bonus.sgzb.material.domain;

import com.bonus.sgzb.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
* @description 综合查询--领料查询
* @author hay
* @date   2024/2/26 14:51
*/
@ApiModel(description = "领料查询")
@Data
public class LeaseRecord{

    private static final long serialVersionUID = 2227217051604273598L;

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

    /**
     * 类型名称
     */
    @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 agreementCode;

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

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

    /**
     * 预领料数
     */
    @ApiModelProperty(value = "预领料数")
    @Excel(name = "领料数量",cellType = Excel.ColumnType.NUMERIC)
    private Double preNum;

    /**
     * 领料人
     */
    @ApiModelProperty(value = "领料人")
    @Excel(name = "领料人")
    private String leasePerson;



    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @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 createTime;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间 ")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 领料单位Id
     */
    @ApiModelProperty(value = "领料单位Id")
    private Integer unitId;

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

    /**
     * 领料工程Id
     */
    @ApiModelProperty(value = "领料工程Id")
    private Integer proId;

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

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

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

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

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


    /**
     * 设备所属类型
     */
    @ApiModelProperty(value = "数据所属组织")
    private Integer companyId;

    /**
     * 装备管理方式(0编号 1计数)
     */
    @ApiModelProperty(value = "装备管理方式")
    private int manageType;

    /**
     * 装备管理方式(0编号 1计数)
     */
    @ApiModelProperty(value = "装备管理方式名称")
    private String manageTypeName;

    /**
     * 实时库存
     */
    @ApiModelProperty(value = "实时库存")
    private Double num;

}