package com.bonus.material.basic.domain;

import com.bonus.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.apache.poi.ss.usermodel.HorizontalAlignment;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
* @description 综合查询--机具入库查询
* @author ma_sh
* @date   2024/2/26 14:51
*/
@ApiModel(description = "机具入库查询")
@Data
public class InputRecordInfo {

    private static final long serialVersionUID = 2227217051604273598L;

    @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 = "设备编码")
    private String maCode;

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

    @ApiModelProperty(value = "入库数量")
    @Excel(name = "入库数量", align = HorizontalAlignment.RIGHT)
    private BigDecimal inputNum;

    @ApiModelProperty(value = "入库人员")
    @Excel(name = "入库人员")
    private String inputUser;

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

    @ApiModelProperty(value = "入库单号")
    @Excel(name = "入库单号")
    private String inputCode;

    @ApiModelProperty(value = "入库类型")
    @Excel(name = "入库类型")
    private String inputType;

    @ApiModelProperty(value = "入库方式")
    @Excel(name = "入库方式")
    private String inputStyle;

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

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

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

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

}