package com.mvc.model.weixin;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

//小程序设备状态表
public class DeviceStatusModel {


    private BigDecimal socRate;//电池剩余电量
    private Integer rsrp;//信号强度
    private String deviceSn;//设备sn
    private Integer dnType;//设备口径dic
    private Integer sampleInterval;//抄表时间间隔
    private String sbgk;//水表工况
    private String deviceUnitName;//尾数单位
    private String dangrzx;//当日在线
    private String sanrzx;//三日在线
    private String markName;//故障名称

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date deviceSetupDate;//安装日期

    public BigDecimal getSocRate() {
        return socRate;
    }

    public void setSocRate(BigDecimal socRate) {
        this.socRate = socRate;
    }

    public Integer getRsrp() {
        return rsrp;
    }

    public void setRsrp(Integer rsrp) {
        this.rsrp = rsrp;
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }

    public Integer getDnType() {
        return dnType;
    }

    public void setDnType(Integer dnType) {
        this.dnType = dnType;
    }

    public Integer getSampleInterval() {
        return sampleInterval;
    }

    public void setSampleInterval(Integer sampleInterval) {
        this.sampleInterval = sampleInterval;
    }

    public String getSbgk() {
        return sbgk;
    }

    public void setSbgk(String sbgk) {
        this.sbgk = sbgk;
    }

    public String getDeviceUnitName() {
        return deviceUnitName;
    }

    public void setDeviceUnitName(String deviceUnitName) {
        this.deviceUnitName = deviceUnitName;
    }

    public String getDangrzx() {
        return dangrzx;
    }

    public void setDangrzx(String dangrzx) {
        this.dangrzx = dangrzx;
    }

    public String getSanrzx() {
        return sanrzx;
    }

    public void setSanrzx(String sanrzx) {
        this.sanrzx = sanrzx;
    }

    public Date getDeviceSetupDate() {
        return deviceSetupDate;
    }

    public void setDeviceSetupDate(Date deviceSetupDate) {
        this.deviceSetupDate = deviceSetupDate;
    }

    public String getMarkName() {
        return markName;
    }

    public void setMarkName(String markName) {
        this.markName = markName;
    }
}
