package com.dy.pipIrrWechat.mqtt;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
/**
|
* @Author: liurunyu
|
* @Date: 2025/8/14 10:06
|
* @Description
|
*/
|
@Data
|
@JsonPropertyOrder({
|
"id", "weatherId", "weatherName", "dt",
|
"airTemperature", "airHumidity",
|
"ultraviolet", "lightIntensity",
|
"rainfall", "windSpeed",
|
"windDirection", "windDirectionStr",
|
"onLine"
|
})
|
@EqualsAndHashCode(callSuper=false)
|
public class VoWeatherLast extends com.dy.pipIrrGlobal.voRm.VoWeather{
|
public Boolean onLine ;
|
|
public void fromVo(com.dy.pipIrrGlobal.voRm.VoWeather vo){
|
this.id = vo.id ;
|
this.weatherId = vo.weatherId ;
|
this.weatherName = vo.weatherName ;
|
this.dt = vo.dt ;
|
this.airTemperature = vo.airTemperature ;
|
this.airHumidity = vo.airHumidity ;
|
this.ultraviolet = vo.ultraviolet ;
|
this.lightIntensity = vo.lightIntensity ;
|
this.rainfall = vo.rainfall ;
|
this.windSpeed = vo.windSpeed ;
|
this.windDirection = vo.windDirection ;
|
}
|
@JSONField(name = "windDirectionStr") // 指定 JSON 中的字段名
|
public String getWindDirectionStr() {
|
return super.getWindDirectionStr() ;
|
}
|
|
}
|