CZT
2024-03-21 e126101defb4083ee301f02f9d2eda73a38feb6c
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package com.fzzy.async.fzzy40.entity;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.fzzy.async.fzzy35.entity.Fz35GrainKey;
import lombok.Data;
 
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
 
/**
 * 粮情数据-主表
 * <p>
 * 更新记录:
 * 1,删除行数据的表记录,调整为数据直接文本保存主表中
 * 2,保留点位坐标信息,便于以后点位走势图查看
 *
 * @author Andy
 */
@Entity
@Table(name = "D_GRAIN")
@Data
@IdClass(Fz40GrainKey.class)
public class Fz40Grain implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "BATCH_ID_", length = 30)
    @PropertyDef(label = "批次编号")
    private String batchId;
 
    @Id
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码", description = "")
    private String companyId;
 
    @Id
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "所属仓库", description = "仓库编号")
    private String depotId;
 
 
    @Column(name = "TEMP_MIN_")
    @PropertyDef(label = "最低温粮温", description = "单位℃,粮情最低温")
    private Double tempMin = 0.0;
 
    @Column(name = "TEMP_MAX_")
    @PropertyDef(label = "最高粮温", description = "单位℃,粮情最高温")
    private Double tempMax = 0.0;
 
    @Column(name = "TEMP_AVE_")
    @PropertyDef(label = "平均粮温", description = "单位℃,粮情平均温度")
    private Double tempAve = 0.0;
 
    @Column(name = "HUMIDITY_IN_")
    @PropertyDef(label = "仓内湿度")
    private Double humidityIn;
 
    @Column(name = "TEMP_IN_")
    @PropertyDef(label = "仓内温度")
    private Double tempIn;
 
    @Column(name = "HUMIDITY_OUT_")
    @PropertyDef(label = "仓外湿度")
    private Double humidityOut;
 
    @Column(name = "TEMP_OUT_")
    @PropertyDef(label = "仓外温度")
    private Double tempOut;
 
    @Column(name = "CABLE_", length = 20)
    @PropertyDef(label = "层行列", description = "用逗号隔开的配置信息,层-行-列")
    private String cable;
 
    @PropertyDef(label = "筒仓层配置", description = "用-隔开的配置信息")
    @Column(name = "CABLE_CIR_", length = 20)
    private String cableCir;
 
    @PropertyDef(label = "油面高度", description = "用-隔开的两个值,油面高度-建筑高度")
    @Column(name = "OIL_HEIGHT_", length = 20)
    private String oilHeight;
 
    @Column(name = "WEATHER_", length = 20)
    @PropertyDef(label = "天气", description = "直接填写中文信息,晴,阴雨天")
    private String weather = "";
 
    @Column(name = "RECEIVE_DATE_")
    @PropertyDef(label = "接收时间")
    private Date receiveDate;
 
    @Column(name = "CHECK_USER_", length = 30)
    @PropertyDef(label = "检测人")
    private String checkUser;
 
    @Column(name = "REMARK_", length = 500)
    @PropertyDef(label = "备注", description = "备注")
    private String remark;
 
    @Column(name = "POINTS_", length = 2000)
    @PropertyDef(label = "采集点信息", description = "用逗号隔开的温度信息信息")
    private String points;
 
    @Transient
    @PropertyDef(label = "所属分库", description = "分库编码,非数据库字段")
    private String deptId;
}