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

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hotwj.platform.resourceManagement.vehicleInsurance.domain.HotVehicleInsurance;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 车辆保险信息视图对象 hot_vehicle_insurance
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotVehicleInsurance.class)
public class HotVehicleInsuranceVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 公司ID
     */
    @ExcelProperty(value = "公司ID")
    private Long companyId;

    /**
     * 车辆ID
     */
    @ExcelProperty(value = "车辆ID")
    private String vehicleId;

    /**
     * 险种
     */
    @ExcelProperty(value = "险种")
    private String insuranceType;

    /**
     * 保险公司
     */
    @ExcelProperty(value = "保险公司")
    private String insurerName;

    /**
     * 保险费用
     */
    @ExcelProperty(value = "保险费用")
    private BigDecimal premiumAmount;

    /**
     * 渠道人
     */
    @ExcelProperty(value = "渠道人")
    private String channelPerson;

    /**
     * 渠道人电话
     */
    @ExcelProperty(value = "渠道人电话")
    private String channelPhone;

    /**
     * 起保日期
     */
    @ExcelProperty(value = "起保日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 终保日期
     */
    @ExcelProperty(value = "终保日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

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

    /**
     * 保险附件图片URL(多个逗号分隔)Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "imageUrls")
    private String imageUrlsUrl;

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

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
