package cn.iocoder.yudao.module.inspection.vo;

import cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description: 设备导入类
 * @Author: 86187
 * @Date: 2025/02/14 9:13
 * @Version: 1.0
 */
@Data
@Accessors(chain = false) // 禁用链式调用
public class InspectionEqInfoImportVo {
    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称", index = 0)
    private String equName;

    /**
     * 设备类别(字典：ins_equ_type)
     */
    @ExcelProperty(value = "设备类型", index = 1)
    private String type;

    /**
     * 设备型号
     */
    @ExcelProperty(value = "型号", index = 2)
    private String equModel;

    /**
     * 设备编号
     */
    @ExcelProperty(value = "出厂编号", index = 3)
    private String equNumber;

    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "校准日期", index = 4)
    private Date validTime;

    /**
     * 下次检定时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "复校日期", index = 5)
    private Date nextCheckTime;

    /**
     * 检测证书编号
     */
    @ExcelProperty(value = "证书编号", index = 6)
    private String certificateNumber;

    /**
     * 制造商
     */
    @ExcelProperty(value = "制造商", index = 7)
    private String manufacturer;

    /**
     * 上次检定单位
     */
    @ExcelProperty(value = "校准单位", index = 8)
    private String lastUnit;

    /**
     * 电话
     */
    @ExcelProperty(value = "电话", index = 9)
    private String mobile;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址", index = 10)
    private String address;

    /**
     * 邮编
     */
    @ExcelProperty(value = "邮编", index = 11)
    private String postcode;

    /**
     * 邮箱
     */
    @ExcelProperty(value = "电子邮箱", index = 12)
    private String email;

    /**
     * 设备检定周期
     */
//    @ExcelProperty(value = "设备检定周期", index = 13)
    @ExcelIgnore
    private String equZq;

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private String reason;

}
