package com.bonus.material.basic.domain.report;

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

/**
 * 退料入库报表
 * @Author ma_sh
 * @create 2025/1/22 16:36
 */
@Data
public class BackInputInfo {

    @ApiModelProperty(value = "是否导出 0 是，1 否")
    private Integer isExport;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "物资类型id")
    private Long typeId;

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

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

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

    @ApiModelProperty(value = "退料数量")
    @Excel(name = "退料数量", align = HorizontalAlignment.RIGHT)
    private BigDecimal backNum;

    @ApiModelProperty(value = "退料日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "退料日期", width = 20, dateFormat = "yyyy-MM-dd")
    private Date backTime;

    @ApiModelProperty(value = "退料单位")
    @Excel(name = "退料单位")
    private String backUnitName;

    @ApiModelProperty(value = "退料工程")
    @Excel(name = "退料工程")
    private String backProjectName;

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

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

    @ApiModelProperty(value = "退料单号")
    @Excel(name = "退料单号")
    private String code;

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

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

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

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

    @ApiModelProperty(value = "用户id")
    private Long userId;
}
