cjl
2023-07-06 0bd7f0dee66640bab77123827cd083db4bec53a7
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.moral.api.entity;
 
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
 
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * <p>
 * 城市aqi实测小时数据表
 * </p>
 *
 * @author moral
 * @since 2021-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CityAqi extends Model<CityAqi> {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 城市id
     */
    private Integer cityCode;
 
    /**
     * 时间
     */
    private Date time;
 
    /**
     * 数据
     */
    private String value;
 
 
    @Override
    protected Serializable pkVal() {
        return null;
    }
 
    public CityAqi() {
    }
 
    public CityAqi(CityAqiDaily cityAqiDaily) {
        this.cityCode = cityAqiDaily.getCityCode();
        this.value = cityAqiDaily.getValue();
        this.time = cityAqiDaily.getTime();
    }
 
    public CityAqi(CityAqiMonthly cityAqiMonthly) {
        this.cityCode = cityAqiMonthly.getCityCode();
        this.value = cityAqiMonthly.getValue();
        this.time = cityAqiMonthly.getTime();
    }
 
    public CityAqi(CityAqiYearly cityAqiYearly) {
        this.cityCode = cityAqiYearly.getCityCode();
        this.value = cityAqiYearly.getValue();
        this.time = cityAqiYearly.getTime();
    }
}