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

import com.hotwj.platform.resourceManagement.vehicleMileage.domain.HotVehicleMileage;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
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_mileage
 *
 * @author shihongwei
 * @date 2026-01-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleMileage.class, reverseConvertGenerate = false)
public class HotVehicleMileageBo extends BaseEntity {

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

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    /**
     * 车辆ID
     */
    @NotNull(message = "车辆ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long vehicleId;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String plateNumber;

    /**
     * 行驶开始日期
     */
    @NotNull(message = "行驶开始日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date startDate;

    /**
     * 行驶结束日期
     */
    @NotNull(message = "行驶结束日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date endDate;

    /**
     * 行驶里程(公里)
     */
    @NotNull(message = "行驶里程(公里)不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal mileageKm;

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

    /**
     * 0=正常, 1=已删除
     */
//    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;


}
