Invoice.java 1.36 KB
package vion.model;

import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;
import vion.dto.InvoiceDTO;
import vion.vo.InvoiceVO;

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


/**
 * 发票记录表
 */
@Data
@TableName(value = "tbl_invoice")
@AutoMappers({
        @AutoMapper(target = InvoiceVO.class),
        @AutoMapper(target = InvoiceDTO.class),
})
public class Invoice {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 合同编号
     */
    @TableField(value = "contract_no")
    private String contractNo;

    /**
     * 开票时间
     */
    @TableField(value = "invoicing_time")
    private Date invoicingTime;

    /**
     * 发票金额
     */
    @TableField(value = "invoice_amount")
    private BigDecimal invoiceAmount;

    /**
     * 发票号
     */
    @TableField(value = "invoice_no")
    private String invoiceNo;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 流水号
     */
    @TableField(value = "serial_no")
    private String serialNo;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}