package com.storlead.sales.pojo.entity.finance;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 发票
 * </p>
 *
 * @author chenkq
 * @since 2024-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("order_invoice_record")
@ApiModel(value="OrderInvoiceRecordEntity对象", description="发票")
public class OrderInvoiceRecordEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableField("data_code")
    private String dataCode;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "签单日期")
    @TableField("invoicing_date")
    private LocalDate invoicingDate;

    @ApiModelProperty(value = "开票金额")
    @TableField("invoice_amount")
    private BigDecimal invoiceAmount;

    @ApiModelProperty(value = "客户id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "关联订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "票据类型")
    @TableField("invoicing_type")
    private Integer invoicingType;

    @ApiModelProperty(value = "关联币种单位id")
    @TableField("currency_unit_id")
    private Integer currencyUnitId;

    @ApiModelProperty(value = "票据号码")
    @TableField("invoice_code")
    private String invoiceCode;

    @ApiModelProperty(value = "票据内容")
    @TableField("invoice_content")
    private String invoiceContent;

    @ApiModelProperty(value = "备注信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "发票经手人员")
    @TableField("handle_user_id")
    private Long handleUserId;


}
