严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
package com.northglass.entity;
 
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
 
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
 
@Entity
@Table(name="gmms_shelf_rank")
public class ShelfRank extends IdEntity {
 
    private String number;
    private String state;
    private String usestatu;
    private RawPackage rawPackage;
    private Date lastestTime;
    /**
     * 启/禁用
     */
    private String flag;
    private Set<ShelfTask> shelfTaskes=new HashSet<ShelfTask>();
    
    private int infoid;
    private String glassId;
    private Integer pieces;
    private Double width;
    private Double length;
    private Double thickness;
    private String color;
    private String precent;
    private Date createTime;
    private Integer completePieces;
 
    public ShelfRank() { }
 
    public ShelfRank(String number,int pieces , double width,double length, double thickness , String color, Date createTime) { 
        this.number = number;
        this.pieces = pieces;
        this.width = width;
        this.length = length;
        this.thickness = thickness;
        this.color = color;
        this.createTime = createTime;
    }
    
    public ShelfRank(String number, String state) {
        this.number = number;
        this.state = state;
    }
    @OneToMany(cascade=CascadeType.REFRESH, mappedBy="shelfRank")
    public Set<ShelfTask> getShelfTaskes() {
        return shelfTaskes;
    }
 
    public void setShelfTaskes(Set<ShelfTask> shelfTaskes) {
        this.shelfTaskes = shelfTaskes;
    }
 
    public String getNumber() {
        return number;
    }
 
    public void setNumber(String number) {
        this.number = number;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
    
    public String getUsestatu() {
        return usestatu;
    }
 
    public void setUsestatu(String usestatu) {
        this.usestatu = usestatu;
    }
 
    public Date getLastestTime() {
        return lastestTime;
    }
 
    public void setLastestTime(Date lastestTime) {
        this.lastestTime = lastestTime;
    }
 
    @JsonIgnore
    @OneToOne(cascade=CascadeType.REFRESH)
    @JoinColumn(name="raw_package_id")
    public RawPackage getRawPackage() {
        return rawPackage;
    }
 
    @JsonIgnore
    public void setRawPackage(RawPackage rawPackage) {
        this.rawPackage = rawPackage;
    }
    
    
    public String getGlassId() {
        return glassId;
    }
 
    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }
 
    public Integer getPieces() {
        return pieces;
    }
 
    public void setPieces(Integer pieces) {
        this.pieces = pieces;
    }
 
    public Double getWidth() {
        return width;
    }
 
    public void setWidth(Double width) {
        this.width = width;
    }
 
    public Double getLength() {
        return length;
    }
 
    public void setLength(Double length) {
        this.length = length;
    }
 
    public Double getThickness() {
        return thickness;
    }
 
    public void setThickness(Double thickness) {
        this.thickness = thickness;
    }
 
    public String getColor() {
        return color;
    }
 
    public void setColor(String color) {
        this.color = color;
    }
 
    public String getPrecent() {
        return precent;
    }
 
    public void setPrecent(String precent) {
        this.precent = precent;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Integer getCompletePieces() {
        return completePieces;
    }
 
    public void setCompletePieces(Integer completePieces) {
        this.completePieces = completePieces;
    }
 
    public String getFlag() {
        return flag;
    }
 
    public void setFlag(String flag) {
        this.flag = flag;
    }
 
    public int getInfoid() {
        return infoid;
    }
 
    public void setInfoid(int infoid) {
        this.infoid = infoid;
    }
 
    @Override
    public String toString() {
        return "ShelfRank [id=" + id + ",number=" + number + ", state=" + state + ", glassId=" + glassId + ",createTime=" + createTime + ",thickness=" + thickness + ",length=" + length + ",width=" + width + ", pieces=" + pieces + ", flag=" + flag + "]";
    }
    
}