package com.ruoyi.database.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

import java.util.List;


/**
 * 发票信息表(BaseInvoiceInfo)
 *
 * @author hanrenchun
 * @since 2026-04-08 09:34:39
 */


@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "base_invoice_info")
@ApiModel(value = "BaseInvoiceInfo", description = "发票信息表")
public class BaseInvoiceInfo extends BaseEntity {
    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @Excel(name = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 记录唯一标识
     */
    @ApiModelProperty("记录唯一标识")
    @Excel(name = "记录唯一标识")
    private String inUnid;

    /**
     * 发票下载地址
     */
    @ApiModelProperty("发票下载地址")
    @Excel(name = "发票下载地址")
    private String pdfUrl;

    /**
     * 开票时间
     */
    @ApiModelProperty("开票时间")
    @Excel(name = "开票时间")
    private Long invoiceTime;

    /**
     * 发票号码
     */
    @ApiModelProperty("发票号码")
    @Excel(name = "发票号码")
    private String invoiceNo;

    /**
     * 开票请求流水号
     */
    @ApiModelProperty("开票请求流水号")
    @Excel(name = "开票请求流水号")
    private String serialNo;

    /**
     * 开票状态
     */
    @ApiModelProperty("开票状态")
    @Excel(name = "开票状态")
    private Integer isPushState;
    @TableField(exist = false)
    private String isPushStateCn;

    /**
     * 购方名称，抬头
     */
    @ApiModelProperty("购方名称，抬头")
    @Excel(name = "购方名称，抬头")
    private String buyerName;

    /**
     * 购方纳税识别号
     */
    @ApiModelProperty("购方纳税识别号")
    @Excel(name = "购方纳税识别号")
    private String buyerTaxNo;

    /**
     * 购方地址
     */
    @ApiModelProperty("购方地址")
    @Excel(name = "购方地址")
    private String buyerAddress;

    /**
     * 购方电话
     */
    @ApiModelProperty("购方电话")
    @Excel(name = "购方电话")
    private String buyerTelephone;

    /**
     * 购方开户行
     */
    @ApiModelProperty("购方开户行")
    @Excel(name = "购方开户行")
    private String buyerBankName;

    /**
     * 购方银行账号
     */
    @ApiModelProperty("购方银行账号")
    @Excel(name = "购方银行账号")
    private String buyerBankNumber;

    /**
     * 发票种类:0-数电普票，1-数电专票
     */
    @ApiModelProperty("发票种类:0-数电普票，1-数电专票")
    @Excel(name = "发票种类:0-数电普票，1-数电专票")
    private Integer invoiceTypeCode;

    /**
     * 单价含税标志:0-不含税,1-含税
     */
    @ApiModelProperty("单价含税标志:0-不含税,1-含税")
    @Excel(name = "单价含税标志:0-不含税,1-含税")
    private Integer priceTaxMark;

    /**
     * 开票总金额(含税)，2位小数
     */
    @ApiModelProperty("开票总金额(含税)，2位小数")
    @Excel(name = "开票总金额(含税)，2位小数")
    private BigDecimal totalAmount;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @Excel(name = "备注")
    private String remark;


    @ApiModelProperty("用户手机号")
    @Excel(name = "用户手机号")
    private String userPhone;


    @ApiModelProperty("批量id")
    private String plId;


}
