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

import com.hotwj.platform.resourceManagement.vehicleClaim.domain.HotVehicleClaim;
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_claim
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleClaim.class, reverseConvertGenerate = false)
public class HotVehicleClaimBo 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;

    /**
     * 车辆保险ID
     */
    private String vehicleInsuranceId;

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

    /**
     * 出险地点
     */
//    @NotBlank(message = "出险地点不能为空", groups = {AddGroup.class, EditGroup.class})
    private String accidentLocation;

    /**
     * 承保险种
     */
    @NotBlank(message = "承保险种不能为空", groups = {AddGroup.class, EditGroup.class})
    private String insuranceType;

    /**
     * 保险公司
     */
    @NotBlank(message = "保险公司不能为空", groups = {AddGroup.class, EditGroup.class})
    private String insurerName;

    /**
     * 出险登记日期
     */
    private Date incidentTime;

    /**
     * 起保日期
     */
    private Date assessDate;

    /**
     * 保险到期日期
     */
    private Date insuranceExpireDate;

    /**
     * 出险事项
     */
    private String claimItems;

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

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

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


}
