package cn.iocoder.yudao.module.stockOperate.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用于导出库存操作子表的VO
 *
 * @author 小李
 * @date 16:32 2024/12/3
**/
@Data
@ExcelIgnoreUnannotated
public class RepairSoiExportVO {

    @ExcelProperty("单号")
    private String soNo;

    @ExcelProperty("商品名称")
    private String name;

    @ExcelProperty("操作人")
    private String userName;

    @ExcelProperty("商品编码")
    private String code;

    @ExcelProperty("条形码")
    private String barCode;

    @ExcelProperty("规格")
    private String model;

    @ExcelProperty("数量")
    private Integer goodsCount;

    @ExcelProperty("价格")
    private BigDecimal goodsPrice;

    @ExcelProperty("合计")
    private BigDecimal total;

    @ExcelProperty("供应商")
    private String supplierName;

    @ExcelProperty("仓库")
    private String warehouseName;

    @ExcelProperty("门店")
    private String cropId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ExcelProperty("时间")
    private LocalDateTime createTime;

    @ExcelProperty("备注")
    private String remark;
}
