package com.yh.saas.plugin.yiliangyiyun.entity;

import java.io.Serializable;
import java.util.List;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录加油明细
 * </p>
 *
 * @author Gdc
 * @since 2022-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("filling_detail_info")
public class FillingDetailInfo extends BaseModel<FillingDetailInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 用户id
     */
    private String commonId;
    /**
     * 加油id
     */
    private String fillingId;
    /**
     * 油耗(L)
     */
    private Double oilConsumption;
    /**
     * 当前油价(元/升)
     */
    private Double currentOilPrice;
    /**
     * 本次消费(元)
     */
    private Double currentConsumption;
    /**
     * 加油凭证
     */
    private String addressUrl;
    /**
     * 总金额
     */
    @TableField(exist = false)
    private Double totalCost;
    /**
     * 总油耗(L)
     */
    @TableField(exist = false)
    private Double tfc;

    /**
     * 报销明细list
     */
    @TableField(exist = false)
    private List<FillingDetailInfo> fillingDetailInfoList;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
