package com.ld.igds.pest.dto;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
import javax.persistence.Id;
|
|
import lombok.Data;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ld.igds.models.Depot;
|
|
/**
|
* 用于封装的粮情信息,每次获取粮情数据,封装为当前对象
|
*
|
* @author jiazx
|
*/
|
@Data
|
public class PestData implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@PropertyDef(label = "批次ID")
|
private String batchId;
|
|
@Id
|
@PropertyDef(label = "组织编码", description = "")
|
private String companyId;
|
|
@Id
|
@PropertyDef(label = "仓库ID", description = "仓库编号")
|
private String depotId;
|
|
@PropertyDef(label = "最多数量")
|
private Double pestMax = 0.0;
|
|
@PropertyDef(label = "虫害采集点开始", description = "气体配置信息")
|
private int pestStart;
|
|
@PropertyDef(label = "虫害采集点截至", description = "气体配置信息")
|
private int pestEnd;
|
|
@PropertyDef(label = "采集通道个数")
|
private int checkNum = 0;
|
|
@PropertyDef(label = "采集点信息", description = "固定为:passCode,num;passCode,num;")
|
private String points;
|
|
@PropertyDef(label = "检测人")
|
private String checkUser;
|
|
@PropertyDef(label = "备注信息")
|
private String remark;
|
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
|
@PropertyDef(label = "接收时间")
|
private Date receiveDate;
|
|
@PropertyDef(label = "仓房信息", description = "关系字段")
|
private Depot depotData;
|
|
@PropertyDef(label = "系统时间", description = "关系字段")
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
|
private Date sysDate = new Date();
|
|
// 采集点信息
|
@PropertyDef(label = "采集点信息")
|
List<PestPoint> listPoint;
|
|
}
|