package com.ruoyi.info.collection.domain.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.ruoyi.common.annotation.Required;
import com.ruoyi.common.annotation.TextFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 信贷客户实体关联信息Excel导入导出对象
 *
 * @author ruoyi
 * @date 2026-02-12
 */
@Data
@Schema(description = "信贷客户实体关联信息Excel导入导出对象")
public class CcdiCustEnterpriseRelationExcel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 身份证号 */
    @ExcelProperty(value = "身份证号", index = 0)
    @ColumnWidth(20)
    @Required
    @TextFormat
    @Schema(description = "身份证号")
    private String personId;

    /** 统一社会信用代码 */
    @ExcelProperty(value = "统一社会信用代码", index = 1)
    @ColumnWidth(25)
    @Required
    @TextFormat
    @Schema(description = "统一社会信用代码")
    private String socialCreditCode;

    /** 企业名称 */
    @ExcelProperty(value = "企业名称", index = 2)
    @ColumnWidth(30)
    @Required
    @Schema(description = "企业名称")
    private String enterpriseName;

    /** 关联人在企业的职务 */
    @ExcelProperty(value = "关联人在企业的职务", index = 3)
    @ColumnWidth(25)
    @Schema(description = "关联人在企业的职务")
    private String relationPersonPost;

    /** 补充说明 */
    @ExcelProperty(value = "补充说明", index = 4)
    @ColumnWidth(40)
    @Schema(description = "补充说明")
    private String remark;
}
