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

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

/**
 * 综合查询新购待入库详情
 * @Author ma_sh
 * @create 2024/12/19 13:22
 */
@Data
public class PurchaseInputInfo {

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

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

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

    @ApiModelProperty(value = "任务ID")
    private Long taskId;

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

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

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

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

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

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

    @ApiModelProperty(value = "新购待入库单号")
    @Excel(name = "新购待入库单号")
    private String code;

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

    private String manageType;
}
