package com.casic.missiles.modular.system.dto.ExcelModel;

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.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author cz
 * @date 2022-6-22
 * 有害气体
 */
@ColumnWidth(30)
@HeadRowHeight(15)
@ContentRowHeight(20)
@ContentStyle(borderLeft = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN, borderTop = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN)
@Data
@ExcelIgnoreUnannotated
@NoArgsConstructor
public class HarmfulDataDto {
    @ExcelProperty("设备编号")
    private String devcode;
    private String deviceType;
    @ExcelProperty("设备类型名称")
    private String deviceTypeName;
    private String deptid;
    @ExcelProperty("部门名称")
    private String deptName;
    @ExcelProperty("点位编号")
    private String wellCode;
    @ExcelProperty("状态描述")
    private String descn;
    @ExcelProperty("甲烷/CH₄(%VOL)")
    @JSONField(name="CH₄")
    private String CH4;
    @ExcelProperty("氧气(ppm)")
    @JSONField(name="O₂")
    private String O2;
    @ExcelProperty("一氧化氮(ppm)")
    @JSONField(name="CO")
    private String CO;
    @ExcelProperty("硫化氢(ppm)")
    @JSONField(name="H₂S")
    private String H2S;
    @ExcelProperty("液位开关")
    private String liquidSwitch;
    @ExcelProperty("采集时间")
    private String uptime;
    @ExcelProperty("记录时间")
    private String logtime;

}
