package cn.iocoder.yudao.module.rescue.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.iocoder.yudao.annotation.Excel;
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;

import java.util.Date;

/**
 * 加油记录对象 rescue_refuel_record
 *
 * @author zcy
 * @date 2023-09-26
 */
@Data
public class RescueRefuelRecord extends TenantBaseDO
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 司机主键 */
    @Excel(name = "司机主键")
    private Long driverId;

    /** 车辆主键 */
    @Excel(name = "车辆主键")
    private Long carId;

    /** 加了都少油 单位升 */
    @Excel(name = "加了都少油 单位升")
    private Double refuelNum;

    /** 加油花了多少钱 */
    @Excel(name = "加油花了多少钱")
    private Double refuelMoney;
    @Excel(name = "当前加油公里数")
    private Integer refuelDistance;
    //展示图片
    private String  showImage;
    /** 时间的记录 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "时间的记录", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date recordTime;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;
    @TableField(exist = false)
    private String realName;
    @TableField(exist = false)
    private String phonenumber;
    @TableField(exist = false)
    private String rescueCarNum;
}
