liurunyu
5 天以前 44eb64bef08ce231ac95d5ee482b046014dc8afa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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() ;
    }
 
}