package com.hotwj.platform.resourceManagement.vehicleDriveLog.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.resourceManagement.vehicleDriveLog.domain.HotVehicleDriveLog;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 车辆行驶日志视图对象 hot_vehicle_drive_log
 *
 * @author shihongwei
 * @date 2026-02-03
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotVehicleDriveLog.class)
public class HotVehicleDriveLogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 公司ID（由应用层保证必填）
     */
    @ExcelProperty(value = "公司ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "由=应用层保证必填")
    private Long companyId;

    /**
     * 车辆ID
     */
    @ExcelProperty(value = "车辆ID")
    private Long vehicleId;

    /**
     * 车牌号
     */
    @ExcelProperty(value = "车牌号")
    private String plateNumber;

    /**
     * 驾驶员ID
     */
    @ExcelProperty(value = "驾驶员ID")
    private String driverId;

    /**
     * 驾驶员姓名
     */
    @ExcelProperty(value = "驾驶员姓名")
    private String driverName;

    /**
     * 驾驶员电话
     */
    @ExcelProperty(value = "驾驶员电话")
    private String driverPhone;

    /**
     * 出发地
     */
    @ExcelProperty(value = "出发地")
    private String startPlace;

    /**
     * 目的地
     */
    @ExcelProperty(value = "目的地")
    private String endPlace;

    /**
     * 出发时间
     */
    @ExcelProperty(value = "出发时间")
    private Date startTime;

    /**
     * 到达时间
     */
    @ExcelProperty(value = "到达时间")
    private Date endTime;

    /**
     * 出发时里程(公里)
     */
    @ExcelProperty(value = "出发时里程(公里)")
    private BigDecimal startMileageKm;

    /**
     * 结束时里程(公里)
     */
    @ExcelProperty(value = "结束时里程(公里)")
    private BigDecimal endMileageKm;

    /**
     * 行驶里程(公里)
     */
    @ExcelProperty(value = "行驶里程(公里)")
    private BigDecimal driveDistanceKm;

    /**
     * 用车事由
     */
    @ExcelProperty(value = "用车事由")
    private String usePurpose;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建者姓名
     */
    @ExcelProperty(value = "创建者姓名")
    private String createByName;

    /**
     * 更新者姓名
     */
    @ExcelProperty(value = "更新者姓名")
    private String updateByName;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
