jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
 
import lombok.Data;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * @Desc: 粮食库存管理,根据国标标结果要求创建
 * @author: Andy
 * @update-time: 2022/11/17
 */
@Data
@Entity
@Table(name = "D_DEPOT_STORE")
public class DepotStore implements Serializable {
 
    /**
     *
     */
    private static final long serialVersionUID = -5548540780391804729L;
 
    @Id
    @Column(name = "ID_", length = 40)
    private String id;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "DEPT_ID_", length = 20)
    @PropertyDef(label = "所属库区")
    private String deptId;
 
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "所属仓库")
    private String depotId;
 
    @Column(name = "STORE_TYPE_", length = 6)
    @PropertyDef(label = "储粮方式", description = "1:散装储粮 2:包装储粮 3:围包散存 9:其他")
    private String storeType;
 
    @Column(name = "FOOD_TYPE_", length = 10)
    @PropertyDef(label = "粮食性质")
    private String foodType;
 
    @Column(name = "FOOD_VARIETY_", length = 10)
    @PropertyDef(label = "粮食品种")
    private String foodVariety;
 
    @Column(name = "FOOD_LEVEL_", length = 10)
    @PropertyDef(label = "粮食等级")
    private String foodLevel;
 
    @Column(name = "FOOD_LOCATION_", length = 50)
    @PropertyDef(label = "粮食产地")
    private String foodLocation;
 
    @Column(name = "DEPOT_STATUS_", length = 10)
    @PropertyDef(label = "仓库状态")
    private String depotStatus;
 
    @Column(name = "FOOD_YEAR_", length = 10)
    @PropertyDef(label = "收货年度")
    private String foodYear;
 
    @Column(name = "STORE_DATE_")
    @PropertyDef(label = "入库时间", description = "入库时间,第一车粮食入仓时间,格式:yyyy-MM-dd HH:mm:ss")
    private Date storeDate;
 
    @Column(name = "STORAGE_REAL_")
    @PropertyDef(label = "实际储量", description = "单位:KG")
    private Double storageReal;
 
    @Column(name = "FULL_DATE_")
    @PropertyDef(label = "封仓日期", description = "当货位(油罐)状态为封仓时,此项为必填项")
    private Date fullDate;
 
    @Column(name = "OUT_DATE_")
    @PropertyDef(label = "出仓时间", description = "入库时间,第一车粮食出仓时间,格式:yyyy-MM-dd HH:mm:ss")
    private Date outDate;
 
    @Column(name = "GRAIN_HEIGHT_")
    @PropertyDef(label = "装粮线高", description = "单位:米")
    private Double grainHeight;
 
    @Column(name = "GRAIN_VOLUME_")
    @PropertyDef(label = "装粮体积", description = "单位:立方米")
    private Double grainVolume;
 
    @Column(name = "REMARK_", length = 250)
    @PropertyDef(label = "备注", description = "备注信息")
    private String remark;
 
    @Column(name = "UPDATE_USER_", length = 50)
    @PropertyDef(label = "修改人")
    private String updateUser;
 
    @Column(name = "UPDATE_DATE_")
    @PropertyDef(label = "修改时间")
    private Date updateDate;
 
    @Column(name = "CREATE_DATE_")
    @PropertyDef(label = "创建时间")
    private Date createDate;
 
    public DepotStore() {
    }
 
    public DepotStore(String id, String companyId, String deptId, String depotId, String storeType, String foodType, String foodVariety, String foodLevel, String foodLocation, String depotStatus, String foodYear, Date storeDate, Double storageReal, Date fullDate, Date outDate, Double grainHeight, Double grainVolume, String remark, String updateUser, Date updateDate, Date createDate) {
        this.id = id;
        this.companyId = companyId;
        this.deptId = deptId;
        this.depotId = depotId;
        this.storeType = storeType;
        this.foodType = foodType;
        this.foodVariety = foodVariety;
        this.foodLevel = foodLevel;
        this.foodLocation = foodLocation;
        this.depotStatus = depotStatus;
        this.foodYear = foodYear;
        this.storeDate = storeDate;
        this.storageReal = storageReal;
        this.fullDate = fullDate;
        this.outDate = outDate;
        this.grainHeight = grainHeight;
        this.grainVolume = grainVolume;
        this.remark = remark;
        this.updateUser = updateUser;
        this.updateDate = updateDate;
        this.createDate = createDate;
    }
 
    public DepotStore(Depot depot, String depotStatus) {
        this.companyId = depot.getCompanyId();
        this.deptId = depot.getDeptId();
        this.depotId = depot.getId();
        this.storeType = depot.getStoreType();
        this.foodType = depot.getFoodType();
        this.foodVariety = depot.getFoodVariety();
        this.foodLevel = depot.getFoodLevel();
        this.foodLocation = depot.getFoodLocation();
        this.depotStatus = depotStatus;
        this.foodYear = depot.getFoodYear();
        this.storageReal = depot.getStorageReal();
        this.storeDate = new Date();
        this.updateDate = new Date();
        this.createDate = new Date();
    }
}