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

import cn.iocoder.yudao.common.RepairDictConstants;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
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.util.Date;

/**
 * 用于调拨相关的导出VO
 *
 * @author 小李
 * @date 17:27 2024/12/3
**/
@Data
@ExcelIgnoreUnannotated
public class RepairStExportVO {

    @ExcelProperty("调出门店")
    private String outCorpId;

    @ExcelProperty("调入门店")
    private String inCorpId;

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

    @ExcelProperty("调拨人")
    private String userName;

    @ExcelProperty("总数量")
    private Integer itemCount;

    @ExcelProperty("总金额")
    private BigDecimal totalPrice;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat(RepairDictConstants.REPAIR_ST_STATUS)
    private String stStatus;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("调拨日期")
    private Date stTime;

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