package com.casic.missiles.model.equipment;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cuicheng
 * @since 2022-12-07
 */
@ColumnWidth(30)
@HeadRowHeight(15)
@ContentRowHeight(20)
@ContentStyle(borderLeft = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN, borderTop = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN)
@ExcelIgnoreUnannotated
@ApiModel
@Data
public class EquipmentExcelData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 设备编号
     */
    @ExcelProperty("设备编号")
    @ApiModelProperty(value = "设备编号", dataType = "String", required = true)
    private String equipmentNo;

    /**
     * 设备名称
     */
    @ExcelProperty("名称")
    @ApiModelProperty(value = "设备名称", dataType = "String", required = true)
    private String equipmentName;

    /**
     * 型号
     */
    @ExcelProperty("型号")
    @ApiModelProperty(value = "型号", dataType = "String", required = true)
    private String modelNo;

    /**
     * ABC
     */
    @ExcelProperty("ABC")
    @ApiModelProperty(value = "ABC", dataType = "String", required = false)
    private String abc;

    /**
     * 检定方式名称
     */
    @ExcelProperty("检定方式")
    @ApiModelProperty(value = "检定方式名称", dataType = "String", required = false)
    private String mesureTypeName;

    /**
     * 管理状态名称
     */
    @ExcelProperty("管理状态")
    @ApiModelProperty(value = "管理状态名称", dataType = "String", required = false)
    private String managerStateName;

    /**
     * 使用部门名称
     */
    @ExcelProperty("使用单位")
    @ApiModelProperty(value = "使用部门名称", dataType = "String", required = false)
    private String useDeptName;

    /**
     * 使用人
     */
    @ExcelProperty("使用人")
    @ApiModelProperty(value = "使用人", dataType = "String", required = false)
    private String usePersonName;

    /**
     * 有效日期
     */
    @ExcelProperty("有效日期")
    @ApiModelProperty(value = "有效日期", dataType = "String", required = false)
    private String validDate;

    /**
     * 备注
     */
    @ExcelProperty("备注")
    @TableField("remark")
    @ApiModelProperty(value = "备注", dataType = "String", required = false)
    private String remark;
}
