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

import com.hotwj.platform.resourceManagement.vehicleChange.domain.HotVehicleChange;
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_change
 *
 * @author shihongwei
 * @date 2025-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleChange.class, reverseConvertGenerate = false)
public class HotVehicleChangeBo 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;

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

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

    /**
     * 变更事项
     */
    @NotBlank(message = "变更事项不能为空", groups = {AddGroup.class, EditGroup.class})
    private String changeItem;

    /**
     * 变更原因
     */
    @NotBlank(message = "变更原因不能为空", groups = {AddGroup.class, EditGroup.class})
    private String changeReason;

    /**
     * 记录人ID
     */
    @NotNull(message = "记录人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long recorderId;

    /**
     * 记录人姓名
     */
    private String recorderName;

    /**
     * 变更凭据图片URL(多个逗号分隔)
     */
    @NotBlank(message = "变更凭据图片URL(多个逗号分隔)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String changeCertImageUrls;

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


}
