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

import com.hotwj.platform.resourceManagement.vehicleDriveLog.domain.HotVehicleDriveLog;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆行驶日志业务对象 hot_vehicle_drive_log
 *
 * @author shihongwei
 * @date 2026-02-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleDriveLog.class, reverseConvertGenerate = false)
public class HotVehicleDriveLogBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 公司ID（由应用层保证必填）
     */
    private Long companyId;

    /**
     * 车辆ID
     */
    private Long vehicleId;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 驾驶员ID
     */
    private String driverId;

    /**
     * 驾驶员姓名
     */
    private String driverName;

    /**
     * 驾驶员电话
     */
    private String driverPhone;

    /**
     * 出发地
     */
    private String startPlace;

    /**
     * 目的地
     */
    private String endPlace;

    /**
     * 出发时间
     */
    private Date startTime;

    /**
     * 到达时间
     */
    private Date endTime;

    /**
     * 出发时里程(公里)
     */
    private BigDecimal startMileageKm;

    /**
     * 结束时里程(公里)
     */
    private BigDecimal endMileageKm;

    /**
     * 行驶里程(公里)
     */
    private BigDecimal driveDistanceKm;

    /**
     * 用车事由
     */
    private String usePurpose;

    /**
     * 备注
     */
    private String remark;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
