package com.hotwj.platform.securityManagement.vehicleInoutCheck.domain.bo;

import com.hotwj.platform.securityManagement.vehicleInoutCheck.domain.HotVehicleInoutCheck;
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.util.Date;

/**
 * 车辆进出场检查业务 明细 对象 hot_vehicle_inout_check
 *
 * @author shihongwei
 * @date 2026-01-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleInoutCheck.class, reverseConvertGenerate = false)
public class HotVehicleInoutCheckBo extends BaseEntity {

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

    /**
     * 进出场检查主表id
     */
    private Long recordId;

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

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

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

    /**
     * 检查人员ID
     */
    @NotNull(message = "检查人员ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long inspectorId;

    /**
     * 检查人员姓名
     */
    private String inspectorName;

    /**
     * 行驶证是否正常 1=正常 0=异常
     */
    @NotNull(message = "行驶证是否正常 1=正常 0=异常不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long drivingLicenseStatus;

    /**
     * 驾驶证是否正常 1=正常 0=异常
     */
    @NotNull(message = "驾驶证是否正常 1=正常 0=异常不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long driverLicenseStatus;

    /**
     * 道路运输证是否正常 1=正常 0=异常
     */
    @NotNull(message = "道路运输证是否正常 1=正常 0=异常不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long roadTransportCertStatus;

    /**
     * 从业资格证是否正常 1=正常 0=异常
     */
    @NotNull(message = "从业资格证是否正常 1=正常 0=异常不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long qualificationCertStatus;

    /**
     * 检查日期
     */
//    @NotNull(message = "检查日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date checkDate;

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

    /**
     * 回场时间
     */
    private Date returnTime;

    /**
     * 运行路线
     */
    @NotBlank(message = "运行路线不能为空", groups = {AddGroup.class, EditGroup.class})
    private String route;

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

    /**
     * 结论
     */
    private String conclusion;

    /**
     * 回场结论
     */
    private String returnRemark;

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


}
