gasWellWatch/src/main/java/com/isu/gaswellwatch/vo/DeviceHistoryVO.java

111 lines
2.1 KiB
Java
Raw Normal View History

package com.isu.gaswellwatch.vo;
import com.baomidou.mybatisplus.extension.activerecord.Model;
2025-02-28 00:20:47 +08:00
import com.isu.gaswellwatch.utils.NumberScaleUtils;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 设备对象 Device
2025-02-21 13:53:37 +08:00
*
* @author scwsl
* @date 2024-11-17
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DeviceHistoryVO extends Model<DeviceHistoryVO> {
private static final long serialVersionUID = 1L;
2025-02-21 13:53:37 +08:00
/**
* 设备类型
*/
private String type;
/**
* 采集时间
*/
private String collectionTime;
2025-02-21 13:53:37 +08:00
/**
* 油压
*/
private String oilPressure;
2025-02-21 13:53:37 +08:00
/**
* 套压
*/
private String casPressure;
2025-02-21 13:53:37 +08:00
/**
* 输压
*/
private String prePressure;
2025-02-21 13:53:37 +08:00
/**
* 运行模式
*/
private String runMode;
2025-02-21 13:53:37 +08:00
/**
* 柱塞状态
*/
private String plugStatus;
2025-02-21 13:53:37 +08:00
/**
* 气井状态
*/
2024-12-08 21:18:38 +08:00
private String wellStatus;
2025-02-21 13:53:37 +08:00
/**
* 倒计时
*/
2024-12-08 21:18:38 +08:00
private String statusEndTime;
2025-02-21 13:53:37 +08:00
/**
* 温度
*/
2024-12-08 21:18:38 +08:00
private String temperature;
2025-02-21 13:53:37 +08:00
/**
* 湿度
*/
2024-12-08 21:18:38 +08:00
private String humidity;
2025-02-21 13:53:37 +08:00
/**
* 太阳能电压
*/
2024-12-08 21:18:38 +08:00
private String solarVoltage;
2025-02-28 00:20:47 +08:00
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);
}
}