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

import com.hotwj.platform.resourceManagement.vehicleAnnualReview.domain.HotVehicleAnnualReview;
import io.github.linpeilie.annotations.AutoMapper;
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.util.Date;

/**
 * 车辆年审明细业务对象 hot_vehicle_annual_review
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleAnnualReview.class, reverseConvertGenerate = false)
public class HotVehicleAnnualReviewBo extends BaseEntity {

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

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

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

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

    /**
     * 年审时间
     */
    @NotNull(message = "年审时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date reviewDate;

    /**
     * 到期日期（用于更新车辆检验有效期）
     */
    private String inspectionValidMonth;

    /**
     * 评定等级:1=一级,2=二级
     */
    @NotNull(message = "评定等级:1=一级,2=二级不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long evaluationLevel;

    /**
     * 年审附件图片URL(多个逗号分隔)
     */
    private String imageUrls;

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

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


}
