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.springframework.format.annotation.DateTimeFormat;

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

/**
 * 在用机具查询详情
 * @Author ma_sh
 * @create 2024/12/19 10:41
 */
@Data
public class UseStorageInfo {

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

    @ApiModelProperty(value = "机具名称")
    @Excel(name = "机具名称")
    private String typeName;

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

    @ApiModelProperty(value = "领料ID")
    private Long leaseId;

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

    @ApiModelProperty(value = "在用数量")
    @Excel(name = "在用数量")
    private BigDecimal usNum;

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

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

    @ApiModelProperty(value = "库管员")
    @Excel(name = "库管员")
    private String maKeeper;

    @ApiModelProperty(value = "操作人")
    @Excel(name = "操作人")
    private String creator;

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

    @ApiModelProperty(value = "领料单号")
    private String code;

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

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