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

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.extension.activerecord.Model;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 闸井查询
 */
@ColumnWidth(30)
@HeadRowHeight(15)
@ContentRowHeight(20)
@ContentStyle(borderLeft = BorderStyleEnum.THIN,borderBottom =BorderStyleEnum.THIN,borderTop = BorderStyleEnum.THIN,borderRight = BorderStyleEnum.THIN)
@ExcelIgnoreUnannotated
@Data
public class DeviceDto  extends Model<DeviceDto> {

    /**
     * id : 1
     * wellCode : N51F131
     * devcode : 41201802450
     * deviceName : 井盖35336443
     * deviceType : 5
     * deviceTypeName : 井盖状态监测仪
     * watchType : 井盖开启
     * communication : 3G/4G
     * modelId : 5
     * modelName : BIRMM-WELL100
     * deptid : 24
     * deptName : 一分公司
     * installDate : 2018-12-27
     * position : 宋郎路
     * concenId : 5
     * concenCode : 468764135
     * onlineState : 0
     * onlineStateName : 在线
     * valid : 1
     * ts : 2018-12-27 00:00:00
     */

    private Long id;//主键
    @ExcelProperty("井编号")
    @Length(max = 15,min = 12)
    private String wellCode;
    @ExcelProperty("设备编号")
    private String devcode;
    private String deviceName;
    private Long deviceType;//设备类型
    private String deviceTypeName;//设备类型名称
    @ExcelProperty("监控内容")
    private String watchType;
    private String communication;
    private Long modelId;
    private String modelName;
    private String deptid;
    @ExcelProperty("权属单位")
    private String deptName;
    @ExcelProperty("安装时间")
    private String installDate;
    @ExcelProperty("设备位置")
    private String position;
    private Long concenId;
    @ExcelProperty("集中器编号")
    private String concenCode;
    private String onlineState;
    @ExcelProperty("在线状态")
    private String onlineStateName;
    private String valid;
    private String ts;
    private String bfzt;
    private String bfztName;
    private String wellId;

}
