package com.mvc.model;

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

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

public class TaskReviewModel {
    private Integer id;

    private String taskId;

    private String taskDate;

    private String deviceSn;

    private String stationCode;

    private String aireadId;

    private String serverReadId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8",locale="zh")
    private Date sampleTime;

    private BigDecimal identValue;

    private BigDecimal serverValue;

    private BigDecimal reviewValue;

    private String idenValidFlag;

    private BigDecimal rawValue;

    private String serverValidFlag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8",locale="zh")
    private Date reviewTime;

    private String reviewMan;

    /**
     * 审核状态
     * 0未审,1代表数据正确,2审核修改,3无法辨别
     */
    private String finishedFlag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8",locale="zh")
    private Date finishedTime;

    /**
     * 历史数据标记
     * 1代表非当日16点(仅针对水表)
     */
    private String historyFlag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8",locale="zh")
    private Date createTime;

    private String mcuImageUrl;

    private String serverImageUrl;

    /**
     * 0:初始状态,1:无需推送,2:需要推送,3:推送成功
     */
    private String sendSlsFlag;

    private String slsReplyMsg;

    private String systemReviewFlag;

    //站代码(为了让用户看自己站点的审核数据)
    private String unitCode;

    private Integer page;//页码

    private Integer rows;//每页条数

    //下面添加的字段,为了提高查询速度(原来是去其它表取) 2022-09-22 guozhao
    private String softVer;

    private String hardVersion;

    private String nbVersion;

    private String aiVersion;

    private String lastTaskId;

    private String lastMcuImageUrl;

    private BigDecimal lastReviewValue;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8",locale="zh")
    private Date lastSampleTime;

    private String stationName;

    private String valueMatched;//MCU与服务侧是否匹配(误差小于1) 2022-09-29 guozhao

    private Integer digitNum;

    /**
     * 最后一个数字单位类型
     */
    private Integer unitType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public String getTaskDate() {
        return taskDate;
    }

    public void setTaskDate(String taskDate) {
        this.taskDate = taskDate == null ? null : taskDate.trim();
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn == null ? null : deviceSn.trim();
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode == null ? null : stationCode.trim();
    }

    public String getAireadId() {
        return aireadId;
    }

    public void setAireadId(String aireadId) {
        this.aireadId = aireadId == null ? null : aireadId.trim();
    }

    public String getServerReadId() {
        return serverReadId;
    }

    public void setServerReadId(String serverReadId) {
        this.serverReadId = serverReadId == null ? null : serverReadId.trim();
    }

    public Date getSampleTime() {
        return sampleTime;
    }

    public void setSampleTime(Date sampleTime) {
        this.sampleTime = sampleTime;
    }

    public BigDecimal getIdentValue() {
        return identValue;
    }

    public void setIdentValue(BigDecimal identValue) {
        this.identValue = identValue;
    }

    public BigDecimal getRawValue() {
        return rawValue;
    }

    public void setRawValue(BigDecimal rawValue) {
        this.rawValue = rawValue;
    }

    public BigDecimal getServerValue() {
        return serverValue;
    }

    public void setServerValue(BigDecimal serverValue) {
        this.serverValue = serverValue;
    }

    public BigDecimal getReviewValue() {
        return reviewValue;
    }

    public void setReviewValue(BigDecimal reviewValue) {
        this.reviewValue = reviewValue;
    }

    public String getIdenValidFlag() {
        return idenValidFlag;
    }

    public void setIdenValidFlag(String idenValidFlag) {
        this.idenValidFlag = idenValidFlag == null ? null : idenValidFlag.trim();
    }

    public String getServerValidFlag() {
        return serverValidFlag;
    }

    public void setServerValidFlag(String serverValidFlag) {
        this.serverValidFlag = serverValidFlag == null ? null : serverValidFlag.trim();
    }

    public Date getReviewTime() {
        return reviewTime;
    }

    public void setReviewTime(Date reviewTime) {
        this.reviewTime = reviewTime;
    }

    public String getReviewMan() {
        return reviewMan;
    }

    public void setReviewMan(String reviewMan) {
        this.reviewMan = reviewMan == null ? null : reviewMan.trim();
    }

    public String getFinishedFlag() {
        return finishedFlag;
    }

    public void setFinishedFlag(String finishedFlag) {
        this.finishedFlag = finishedFlag == null ? null : finishedFlag.trim();
    }

    public Date getFinishedTime() {
        return finishedTime;
    }

    public void setFinishedTime(Date finishedTime) {
        this.finishedTime = finishedTime;
    }

    public String getHistoryFlag() {
        return historyFlag;
    }

    public void setHistoryFlag(String historyFlag) {
        this.historyFlag = historyFlag == null ? null : historyFlag.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getMcuImageUrl() {
        return mcuImageUrl;
    }

    public void setMcuImageUrl(String mcuImageUrl) {
        this.mcuImageUrl = mcuImageUrl == null ? null : mcuImageUrl.trim();
    }

    public String getServerImageUrl() {
        return serverImageUrl;
    }

    public void setServerImageUrl(String serverImageUrl) {
        this.serverImageUrl = serverImageUrl == null ? null : serverImageUrl.trim();
    }

    public String getSendSlsFlag() {
        return sendSlsFlag;
    }

    public void setSendSlsFlag(String sendSlsFlag) {
        this.sendSlsFlag = sendSlsFlag == null ? null : sendSlsFlag.trim();
    }

    public String getSlsReplyMsg() {
        return slsReplyMsg;
    }

    public void setSlsReplyMsg(String slsReplyMsg) {
        this.slsReplyMsg = slsReplyMsg == null ? null : slsReplyMsg.trim();
    }

    public String getSystemReviewFlag() {
        return systemReviewFlag;
    }

    public void setSystemReviewFlag(String systemReviewFlag) {
        this.systemReviewFlag = systemReviewFlag == null ? null : systemReviewFlag.trim();
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }
    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode == null ? null : unitCode.trim();
    }

    public String getSoftVer() {
        return softVer;
    }

    public void setSoftVer(String softVer) {
        this.softVer = softVer == null ? null : softVer.trim();
    }

    public String getHardVersion() {
        return hardVersion;
    }

    public void setHardVersion(String hardVersion) {
        this.hardVersion = hardVersion == null ? null : hardVersion.trim();
    }

    public String getNbVersion() {
        return nbVersion;
    }

    public void setNbVersion(String nbVersion) {
        this.nbVersion = nbVersion == null ? null : nbVersion.trim();
    }

    public String getAiVersion() {
        return aiVersion;
    }

    public void setAiVersion(String aiVersion) {
        this.aiVersion = aiVersion == null ? null : aiVersion.trim();
    }

    public String getLastTaskId() {
        return lastTaskId;
    }

    public void setLastTaskId(String lastTaskId) {
        this.lastTaskId = lastTaskId == null ? null : lastTaskId.trim();
    }

    public String getLastMcuImageUrl() {
        return lastMcuImageUrl;
    }

    public void setLastMcuImageUrl(String lastMcuImageUrl) {
        this.lastMcuImageUrl = lastMcuImageUrl == null ? null : lastMcuImageUrl.trim();
    }

    public BigDecimal getLastReviewValue() {
        return lastReviewValue;
    }

    public void setLastReviewValue(BigDecimal lastReviewValue) {
        this.lastReviewValue = lastReviewValue;
    }

    public Date getLastSampleTime() {
        return lastSampleTime;
    }

    public void setLastSampleTime(Date lastSampleTime) {
        this.lastSampleTime = lastSampleTime;
    }

    public String getValueMatched() {
        return valueMatched;
    }

    public void setValueMatched(String valueMatched) {
        this.valueMatched = valueMatched;
    }

    public Integer getDigitNum() {
        return digitNum;
    }

    public void setDigitNum(Integer digitNum) {
        this.digitNum = digitNum;
    }

    public Integer getUnitType() {
        return unitType;
    }

    public void setUnitType(Integer unitType) {
        this.unitType = unitType;
    }
}
