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;
|
}
|
}
|