jiazx0107@163.com
2023-06-25 1a47d9eef4cfe9385ce66b791de84db54a5ba87c
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
66
67
68
69
70
71
72
73
74
75
76
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;
 
}