package org.dromara.web.domain.vo;

import org.dromara.web.domain.InvoiceRecord;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.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;



/**
 * 开票记录视图对象 invoice_record
 *
 * @author Huanyi
 * @date 2025-08-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = InvoiceRecord.class)
public class InvoiceRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 发票号码
     */
    @ExcelProperty(value = "发票号码")
    private String number;

    /**
     * 发票类型
     */
    @ExcelProperty(value = "发票类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "invoice_type")
    private String type;

    /**
     * 发票抬头
     */
    @ExcelProperty(value = "发票抬头")
    private String header;

    /**
     * 抬头名称
     */
    @ExcelProperty(value = "抬头名称")
    private String headerName;

    /**
     * 患者名称
     */
    @ExcelProperty(value = "患者名称")
    private String name;

    /**
     * 门诊/住院号
     */
    @ExcelProperty(value = "门诊/住院号")
    private String admissionId;

    /**
     * 开票金额
     */
    @ExcelProperty(value = "开票金额")
    private Long amount;

    /**
     * 开票进度
     */
    @ExcelProperty(value = "开票进度", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "invoice_progress")
    private Long progress;

    /**
     * 失败原因
     */
    @ExcelProperty(value = "失败原因")
    private String failReason;


}
