|
|
@@ -77,6 +77,71 @@ public class SensorData extends JfcloudInFluxEntity {
|
|
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
private Float ch4o;
|
|
|
|
|
|
+ @Column(name = "O3")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float o3;
|
|
|
+
|
|
|
+ @Column(name = "O2")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float o2;
|
|
|
+
|
|
|
+ @Column(name = "H2S")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float h2s;
|
|
|
+
|
|
|
+ @Column(name = "CH4")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float ch4;
|
|
|
+
|
|
|
+ @Column(name = "CO")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float co;
|
|
|
+
|
|
|
+ @Column(name = "NO2")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float no2;
|
|
|
+
|
|
|
+ @Column(name = "SO2")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float so2;
|
|
|
+
|
|
|
+ @Column(name = "H2")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float h2;
|
|
|
+
|
|
|
+ @Column(name = "NH3")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float nh3;
|
|
|
+
|
|
|
+ @Column(name = "dB")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float dB;
|
|
|
+
|
|
|
+ @Column(name = "odor")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float odor;
|
|
|
+
|
|
|
+ @Column(name = "TPS")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float tsp;
|
|
|
+
|
|
|
+ @Column(name = "smoke")
|
|
|
+ @JsonSerialize(using = FloatNullToDashSerializer.class)
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|
|
|
+ private Float smoke;
|
|
|
+
|
|
|
@Column(name = "battery")
|
|
|
@JsonSerialize(using = FloatNullToDashSerializer.class) // 使用自定义序列化器
|
|
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#.00")
|