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

import com.hotwj.platform.resourceManagement.vehicleInsurance.domain.HotVehicleInsurance;
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.math.BigDecimal;
import java.util.Date;

/**
 * 车辆保险信息业务对象 hot_vehicle_insurance
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleInsurance.class, reverseConvertGenerate = false)
public class HotVehicleInsuranceBo 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;

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

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

    /**
     * 保险费用
     */
    @NotNull(message = "保险费用不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal premiumAmount;

    /**
     * 渠道人
     */
    private String channelPerson;

    /**
     * 渠道人电话
     */
    private String channelPhone;

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

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

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

    /**
     * 是否归档(0=否,1=是)
     */
    private Integer isArchived;

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


}
