YYC
2023-10-12 69b106562e1649b04155bf16d7ce635c7cc80c2d
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
package com.ld.igds.grain.dto;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * 粮情采集点位信息,需要持久化到数据库中的信息
 */
@Data
public class GrainItemInfo implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
 
    private String id;
 
    private Double tempAve = 0.0;
 
    private String cable;
 
    private int num;
 
    private Double temp = 0.0;
 
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MM-dd HH:mm",timezone = "GMT+8")
    private Date receiveDate;
 
    public GrainItemInfo() {
    }
 
    public GrainItemInfo(int i, Double temp) {
        this.num = i;
        this.temp = temp;
    }
}