package com.ruoyi.common.importExcel.excel.tempInfo;

import com.ruoyi.common.importExcel.annotation.ExcelSheetColumn;
import com.ruoyi.common.importExcel.annotation.ExcelSheetInfo;
import com.ruoyi.common.importExcel.excel.ExcelCellValueType;
import com.ruoyi.common.importExcel.excel.helper.BasicExcelHelper;
import lombok.Data;


/**
 * @author fangk
 * @date 2024/4/30
 * @desc LeadInfoHelper 线索信息导入模板
 */

@Data
@ExcelSheetInfo(titleRow = 1, dataRowStart = 2)
public class LeadInfoHelper extends BasicExcelHelper {

    // 线索
    @ExcelSheetColumn(index = 0, colName = "来源", i18nCode = "lead.source", maxLength = 30)
    private String origin;

    @ExcelSheetColumn(index = 1, colName = "区域", i18nCode = "lead.area", maxLength = 30)
    private String areaName;

    private Long areaId;

    private Long countryId;

    @ExcelSheetColumn(index = 2, colName = "国家", i18nCode = "lead.country", maxLength = 30)
    private String countryName;

    @ExcelSheetColumn(index = 3, colName = "城市", i18nCode = "project.city", maxLength = 100)
    private String city;

    // @ExcelSheetColumn(index = 3, colName = "客户姓名", i18nCode = "lead.customer", maxLength = 50)
    // private String accountName;

    @ExcelSheetColumn(index = 4, colName = "公司名称", i18nCode = "lead.company", maxLength = 80, notBlank = false)
    private String company;

    @ExcelSheetColumn(index = 5, colName = "公司类型", i18nCode = "lead.companyType", maxLength = 100, notBlank = false)
    private String companyType;

    @ExcelSheetColumn(index = 6, colName = "归属集团", i18nCode = "lead.group", maxLength = 255, notBlank = false)
    private String group;

    @ExcelSheetColumn(index = 7, colName = "公司背景", i18nCode = "lead.background", maxLength = 255, notBlank = false)
    private String background;

    // @ExcelSheetColumn(index = 8, colName = "客户类型", i18nCode = "lead.type", maxLength = 50)
    // private String type;

    @ExcelSheetColumn(index = 8, colName = "联系人", i18nCode = "lead.linkman", maxLength = 100)
    private String contactPerson;

    @ExcelSheetColumn(index = 9, colName = "联系方式", i18nCode = "lead.phone", maxLength = 100, minLength = 5, notBlank = false)
    private String contact;

    @ExcelSheetColumn(index = 10, colName = "邮箱", i18nCode = "lead.email", maxLength = 80, notBlank = false, type = ExcelCellValueType.EMAIL)
    private String email;

    // @ExcelSheetColumn(index = 12, colName = "行业", i18nCode = "lead.industry", maxLength = 100, notBlank = false)
    // private String sector;

    @ExcelSheetColumn(index = 11, colName = "职位", i18nCode = "lead.jobTitle", maxLength = 255, notBlank = false)
    private String jobTitle;

    @ExcelSheetColumn(index = 12, colName = "项目类型", i18nCode = "lead.projectType", maxLength = 80, notBlank = false)
    private String segment;

    @ExcelSheetColumn(index = 13, colName = "需求类型", i18nCode = "lead.requirementType", maxLength = 80)
    private String requirementType;

    @ExcelSheetColumn(index = 14, colName = "产品意向", i18nCode = "lead.productIntention", maxLength = 80, notBlank = false)
    private String intentionalProduct;

    @ExcelSheetColumn(index = 15, colName = "询盘信息", i18nCode = "lead.requirement", maxLength = 500)
    private String requirement;

    @ExcelSheetColumn(index = 16, colName = "地址", i18nCode = "lead.address", maxLength = 100, notBlank = false)
    private String address;

    @ExcelSheetColumn(index = 17, colName = "优先级", i18nCode = "lead.priority", maxLength = 30)
    private String priority;

    // @ExcelSheetColumn(index1920 = 19, colName = "线索时间", i18nCode = "lead.time", maxLength = 50, type = ExcelCellValueType.DATE)
    // private String leadTime;

    @ExcelSheetColumn(index = 18, colName = "备注", i18nCode = "lead.remark", maxLength = 500, notBlank = false)
    private String remark;

}