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

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.resourceManagement.companyInsurance.domain.HotCompanyInsurance;
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_company_insurance
 *
 * @author shihongwei
 * @date 2025-12-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotCompanyInsurance.class)
public class HotCompanyInsuranceVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 公司ID
     */
    private Long companyId;

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

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

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

    /**
     * 终保日期
     */
    @ExcelProperty(value = "终保日期", index = 2)
    private Date endDate;

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

    /**
     * 渠道人手机号
     */
    @ExcelProperty(value = "渠道人手机号", index = 4)
    private String channelPhone;

    /**
     * 保险费用
     */
    private BigDecimal premiumAmount;

    /**
     * 图片附件URL(多个用逗号分隔)
     */
    private String annexUrl;

    /**
     * 图片附件URL(多个用逗号分隔)Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "annexUrl")
    private String annexUrlUrl;
    /**
     * 0=未归档, 1=已归档
     */
    @ExcelProperty(value = "是否归档", index = 5, converter = org.dromara.common.excel.convert.ExcelDictConvert.class)
    @org.dromara.common.excel.annotation.ExcelDictFormat(readConverterExp = "1=是,0=否")
    private Long isArchived;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
