package com.ruoyi.ems.record.domain;

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

/**
 * 水实时数据对象 ems_record_water_instant
 *
 * @author Yinq
 * @date 2024-05-14
 */
public class EmsRecordWaterInstant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**   */
    private Long objId;

    /** 计量设备编号 */
    @Excel(name = "计量设备编号")
    private String monitorCode;

    /** 计量设备编号 */
    @Excel(name = "计量设备名称")
    private String monitorName;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date collectTime;

    /** 瞬时流量 */
    @Excel(name = "瞬时流量")
    private BigDecimal fluxFlow;

    /** 累计流量 */
    @Excel(name = "累计流量")
    private BigDecimal waterFlow;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    /** 采集方式（0自动 1手动） */
    @Excel(name = "采集方式", readConverterExp = "0=自动,1=手动")
    private Long collectType;

    public String getMonitorCode() {
        return monitorCode;
    }

    public void setMonitorCode(String monitorCode) {
        this.monitorCode = monitorCode;
    }

    public String getMonitorName() {
        return monitorName;
    }

    public void setMonitorName(String monitorName) {
        this.monitorName = monitorName;
    }

    public void setObjId(Long objId)
    {
        this.objId = objId;
    }

    public Long getObjId()
    {
        return objId;
    }

    public void setCollectTime(Date collectTime)
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime()
    {
        return collectTime;
    }
    public void setFluxFlow(BigDecimal fluxFlow)
    {
        this.fluxFlow = fluxFlow;
    }

    public BigDecimal getFluxFlow()
    {
        return fluxFlow;
    }
    public void setWaterFlow(BigDecimal waterFlow)
    {
        this.waterFlow = waterFlow;
    }

    public BigDecimal getWaterFlow()
    {
        return waterFlow;
    }
    public void setRecordTime(Date recordTime)
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime()
    {
        return recordTime;
    }
    public void setCollectType(Long collectType)
    {
        this.collectType = collectType;
    }

    public Long getCollectType()
    {
        return collectType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("objId", getObjId())
            .append("monitorCode", getMonitorCode())
            .append("collectTime", getCollectTime())
            .append("fluxFlow", getFluxFlow())
            .append("waterFlow", getWaterFlow())
            .append("recordTime", getRecordTime())
            .append("collectType", getCollectType())
            .toString();
    }
}
