package com.fjhx.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fjhx.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @since 2022-08-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class InvoiceDetails extends BaseEntity {


    /**
     * 发票id
     */
    private Long invoiceId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单编号
     */
    private String orderCode;

    /**
     * 订单金额
     */
    private BigDecimal orderPrice;

    /**
     * 发票金额
     */
    private BigDecimal invoicePrice;

    /**
     * 逻辑删除 0未删除 1已删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


}
