package org.dromara.ems.record.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.format.DateTimeFormat;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

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

/**
 * 震动实时数据对象 T_VibrationSensor_Data
 * 
 * @author ZangCH
 * @date 2024-08-22
 */
@ExcelIgnoreUnannotated
public class EmsVibrationInstant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计量设备名称 */
    @ExcelProperty(value = "计量设备名称")
    private String monitorName;

    public String getMonitorName() {
        return monitorName;
    }

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

    /** 主键标识 */
    private Long objId;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "采集时间")
    private Date collectTime;

    /** 振动传感器编号 */
    @ExcelProperty(value = "振动传感器编号")
    private String sensorId;

    /** 速度(mm/s) */
    @ExcelProperty(value = "速度(mm/s)")
    private BigDecimal speed;

    /** 位移(um) */
    @ExcelProperty(value = "位移(um)")
    private BigDecimal displacement;

    /** 加速度(g) */
    @ExcelProperty(value = "加速度(g)")
    private BigDecimal acceleration;

    /** 温度(℃) */
    @ExcelProperty(value = "温度(℃)")
    private BigDecimal temperature;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "记录时间")
    private Date recodeTime;

    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 setSensorId(String sensorId) 
    {
        this.sensorId = sensorId;
    }

    public String getSensorId() 
    {
        return sensorId;
    }
    public void setSpeed(BigDecimal speed) 
    {
        this.speed = speed;
    }

    public BigDecimal getSpeed() 
    {
        return speed;
    }
    public void setDisplacement(BigDecimal displacement) 
    {
        this.displacement = displacement;
    }

    public BigDecimal getDisplacement() 
    {
        return displacement;
    }
    public void setAcceleration(BigDecimal acceleration) 
    {
        this.acceleration = acceleration;
    }

    public BigDecimal getAcceleration() 
    {
        return acceleration;
    }
    public void setTemperature(BigDecimal temperature) 
    {
        this.temperature = temperature;
    }

    public BigDecimal getTemperature() 
    {
        return temperature;
    }
    public void setRecodeTime(Date recodeTime) 
    {
        this.recodeTime = recodeTime;
    }

    public Date getRecodeTime() 
    {
        return recodeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("objId", getObjId())
            .append("collectTime", getCollectTime())
            .append("sensorId", getSensorId())
            .append("speed", getSpeed())
            .append("displacement", getDisplacement())
            .append("acceleration", getAcceleration())
            .append("temperature", getTemperature())
            .append("recodeTime", getRecodeTime())
            .toString();
    }
}
