package org.dromara.payment.invoice.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.payment.invoice.domain.MerInvoiceDetail;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 开票明细视图对象 mer_invoice_detail
 *
 * @author LionLi
 * @date 2024-05-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MerInvoiceDetail.class)
public class MerInvoiceDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 票据申请id
     */
    @ExcelProperty(value = "票据申请id")
    private Long invId;

    /**
     * 票据申请编号
     */
    @ExcelProperty(value = "票据申请编号")
    private String invNo;

    /**
     * 开票金额（分）
     */
    @ExcelProperty(value = "开票金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long invAmount;

    /**
     * 发票编号
     */
    @ExcelProperty(value = "发票编号")
    private String detailNo;

    /**
     * 发票样张地址
     */
    @ExcelProperty(value = "发票样张地址")
    private String invPic;

    /**
     * 开票类目
     */
    @ExcelProperty(value = "开票类目")
    private String category;

    /**
     * 添加人
     */
    @ExcelProperty(value = "添加人")
    private String addBy;

    /**
     * 添加时间
     */
    @ExcelProperty(value = "添加时间")
    private Date addTime;


}
