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

import com.hotwj.platform.resourceManagement.vehicleMaintenance.domain.HotVehicleMaintenance;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 车辆维护记录业务对象 hot_vehicle_maintenance
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleMaintenance.class, reverseConvertGenerate = false)
public class HotVehicleMaintenanceBo 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 maintainDate;

    /**
     * 维护完成时间
     */
    private Date finishTime;

    /**
     * 拖修方
     */
    private String transferor;

    /**
     * 进厂检验单图片URL(多个逗号分隔)
     */
    private String entryInspectImageUrls;

    /**
     * 过程检验单图片URL(多个逗号分隔)
     */
    private String processInspectImageUrls;

    /**
     * 竣工检验单图片URL(多个逗号分隔)
     */
    private String finalInspectImageUrls;

    /**
     * 竣工出厂合格证图片URL(多个逗号分隔)
     */
    private String factoryCertImageUrls;

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


}
