111 lines
2.1 KiB
Java
111 lines
2.1 KiB
Java
package com.isu.gaswellwatch.vo;
|
|
|
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
import com.isu.gaswellwatch.utils.NumberScaleUtils;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Builder;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
/**
|
|
* 设备对象 Device
|
|
*
|
|
* @author scwsl
|
|
* @date 2024-11-17
|
|
*/
|
|
@Data
|
|
@Builder
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
public class DeviceHistoryVO extends Model<DeviceHistoryVO> {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
/**
|
|
* 设备类型
|
|
*/
|
|
private String type;
|
|
|
|
/**
|
|
* 采集时间
|
|
*/
|
|
private String collectionTime;
|
|
|
|
/**
|
|
* 油压
|
|
*/
|
|
private String oilPressure;
|
|
|
|
/**
|
|
* 套压
|
|
*/
|
|
private String casPressure;
|
|
|
|
/**
|
|
* 输压
|
|
*/
|
|
private String prePressure;
|
|
|
|
/**
|
|
* 运行模式
|
|
*/
|
|
private String runMode;
|
|
|
|
/**
|
|
* 柱塞状态
|
|
*/
|
|
private String plugStatus;
|
|
|
|
/**
|
|
* 气井状态
|
|
*/
|
|
private String wellStatus;
|
|
|
|
/**
|
|
* 倒计时
|
|
*/
|
|
private String statusEndTime;
|
|
|
|
/**
|
|
* 温度
|
|
*/
|
|
private String temperature;
|
|
|
|
/**
|
|
* 湿度
|
|
*/
|
|
private String humidity;
|
|
|
|
/**
|
|
* 太阳能电压
|
|
*/
|
|
private String solarVoltage;
|
|
|
|
public void setOilPressure(String oilPressure) {
|
|
this.oilPressure = NumberScaleUtils.formatTwoScalePositiveNumber(oilPressure);
|
|
}
|
|
|
|
public void setPrePressure(String prePressure) {
|
|
this.prePressure = NumberScaleUtils.formatTwoScalePositiveNumber(prePressure);
|
|
}
|
|
|
|
public void setCasPressure(String casPressure) {
|
|
this.casPressure = NumberScaleUtils.formatTwoScalePositiveNumber(casPressure);
|
|
}
|
|
|
|
public void setTemperature(String temperature) {
|
|
this.temperature = NumberScaleUtils.formatTwoScalePositiveNumber(temperature);
|
|
}
|
|
|
|
public void setHumidity(String humidity) {
|
|
this.humidity = NumberScaleUtils.formatTwoScalePositiveNumber(humidity);
|
|
}
|
|
|
|
public void setSolarVoltage(String solarVoltage) {
|
|
this.solarVoltage = NumberScaleUtils.formatTwoScalePositiveNumber(solarVoltage);
|
|
}
|
|
|
|
}
|