package com.ho.business.vo.resp.point;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ho.common.tools.constant.CommonConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author fancl
 * @desc:
 * @date 2023/3/9
 */
@Data
@ExcelIgnoreUnannotated
public class PointRespVO {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "设备映射表的id")
    Integer deviceTypeColId;

    @ApiModelProperty(value = "站点id")
    Integer stationId;

    @ApiModelProperty(value = "设备id")
    Integer srcId;

    @ApiModelProperty(value = "设备类型")
    @ExcelProperty(value = "设备类型",index = 3)
    String deviceType;

    @ApiModelProperty(value = "1遥信 2遥测 3遥控")
    private Integer sensType;

    @ApiModelProperty(value = "设备名")
    @ExcelProperty(value = "所属设备",index = 2)
    String deviceName;

    @ApiModelProperty(value = "点表字段")
    @ExcelProperty(value = "英文名称",index = 1)
    String col;

    @ApiModelProperty(value = "点表字段名称")
    @ExcelProperty(value = "中文名称",index = 0)
    String colName;

    @ApiModelProperty(value = "当前值")
    @ExcelProperty(value = "当前值",index = 7)
    BigDecimal value;

    @ApiModelProperty(value = "单位")
    @ExcelProperty(value = "单位",index = 8)
    String unit;

    @ApiModelProperty(value = "最大值")
    @ExcelProperty(value = "最大值",index = 4)
    BigDecimal maxValue;

    @ApiModelProperty(value = "最小值")
    @ExcelProperty(value = "最小值",index = 5)
    BigDecimal minValue;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = CommonConstant.DATE)
    @ExcelProperty(value = "更新时间",index = 6)
    String updateTime;

    @ApiModelProperty(value = "是否具有品质位 1是 2否")
    private Integer qualityLevel;

}
