package com.xunhong.erp.turbo.biz.infrastructure.entity;

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.xunhong.erp.turbo.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author shenyifei
 */
@Data
@TableName(value = "expense_provision")
@EqualsAndHashCode(callSuper = true)
public class ExpenseProvisionDO extends BaseDO<ExpenseProvisionDO> {

    /**
     * 明细ID
     */
    @TableId(value = "expense_provision_id", type = IdType.ASSIGN_ID)
    private Long expenseProvisionId;

    /**
     * 花销统计记录ID
     */
    @TableField(value = "expense_record_id")
    private Long expenseRecordId;

    /**
     * 经销商名称
     */
    @TableField(value = "dealer_name")
    private String dealerName;

    /**
     * 车次号
     */
    @TableField(value = "vehicle_no")
    private String vehicleNo;

    /**
     * 计提金额
     */
    @TableField(value = "provision_amount")
    private BigDecimal provisionAmount;

    /**
     * 采购单ID
     */
    @TableField(value = "order_id")
    private Long orderId;

}

