package com.goldenwater.gx.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.goldenwater.common.annotation.Excel;
import com.goldenwater.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 数据质量评估对象 gx_exchange_quality
 */
public class GxExchangeQuality extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @Excel(name = "业务编码")
    private String bizCode;

    @Excel(name = "站码")
    private String stcd;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分析日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date analysisDate;

    @Excel(name = "评估类型")
    private String type;

    @Excel(name = "评估值")
    private BigDecimal value;

    @Excel(name = "数据条数")
    private Integer cnt;

    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date starttime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endtime;

    @Excel(name = "删除标志", readConverterExp = "0=存在,1=删除")
    private String delFlag;

    /** 关联站名（非持久化） */
    private String stnm;

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public String getBizCode() { return bizCode; }
    public void setBizCode(String bizCode) { this.bizCode = bizCode; }

    public String getStcd() { return stcd; }
    public void setStcd(String stcd) { this.stcd = stcd; }

    public Date getAnalysisDate() { return analysisDate; }
    public void setAnalysisDate(Date analysisDate) { this.analysisDate = analysisDate; }

    public String getType() { return type; }
    public void setType(String type) { this.type = type; }

    public BigDecimal getValue() { return value; }
    public void setValue(BigDecimal value) { this.value = value; }

    public Integer getCnt() { return cnt; }
    public void setCnt(Integer cnt) { this.cnt = cnt; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }

    public Date getStarttime() { return starttime; }
    public void setStarttime(Date starttime) { this.starttime = starttime; }

    public Date getEndtime() { return endtime; }
    public void setEndtime(Date endtime) { this.endtime = endtime; }

    public String getDelFlag() { return delFlag; }
    public void setDelFlag(String delFlag) { this.delFlag = delFlag; }

    public String getStnm() { return stnm; }
    public void setStnm(String stnm) { this.stnm = stnm; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bizCode", getBizCode())
                .append("stcd", getStcd())
                .append("analysisDate", getAnalysisDate())
                .append("value", getValue())
                .toString();
    }
}
