严智鑫
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
package com.northglass.entity;
 
import java.util.Date;
 
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
 
 
@Entity
@Table(name="gmms_rank")
public class Rank extends IdEntity {
    
    private String glassId;
    private int pieces;
    private double width;
    private double height;
    private double thickness;
    private String color;
    private String type;
    private String flag;
    //厂家信息
    private String manufacturer;
    private Date createtime;
    private Date endtime;
    private ShelfRank shelfRank;
    
    public Rank() { }
    
    @ManyToOne
    @JoinColumn(name="shelf_rank_id")
    public ShelfRank getShelfRank() {
        return shelfRank;
    }
 
    public void setShelfRank(ShelfRank shelfRank) {
        this.shelfRank = shelfRank;
    }
 
    public String getManufacturer() {
        return manufacturer;
    }
 
    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }
 
    public double getWidth() {
        return width;
    }
 
    public void setWidth(double width) {
        this.width = width;
    }
 
    public double getHeight() {
        return height;
    }
 
    public void setHeight(double height) {
        this.height = height;
    }
 
    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 int getPieces() {
        return pieces;
    }
 
    public void setPieces(int pieces) {
        this.pieces = pieces;
    }
 
    public Date getCreatetime() {
        return createtime;
    }
 
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
 
    public String getGlassId() {
        return glassId;
    }
 
    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }
    
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public Date getEndtime() {
        return endtime;
    }
 
    public void setEndtime(Date endTime) {
        this.endtime = endTime;
    }
 
    public String getFlag() {
        return flag;
    }
 
    public void setFlag(String flag) {
        this.flag = flag;
    }
 
    public Rank(double width, double height, double thickness, String color) {
        super();
        this.width = width;
        this.height = height;
        this.thickness = thickness;
        this.color = color;
    }
    
    
    
    
    public Rank(String glassId, int pieces, double width, double height, double thickness,
            String color, String manufacturer, Date createtime,ShelfRank shelfRank) {
        super();
        this.glassId = glassId;
        this.pieces = pieces;
        this.width = width;
        this.height = height;
        this.thickness = thickness;
        this.color = color;
        this.manufacturer = manufacturer; 
        this.createtime = createtime;
        this.shelfRank = shelfRank;
    }
    
    public Rank(String glassId, int pieces, String state, double width, double height, double thickness,
            String color, int leftPieces, String manufacturer, String comment, Date createtime) {
        super();
        this.glassId = glassId;
        this.pieces = pieces;
        this.width = width;
        this.height = height;
        this.thickness = thickness;
        this.color = color;
        this.manufacturer = manufacturer;
        this.createtime = createtime;
    }
 
    public Rank(String glassId, int pieces, double width, double height, double thickness, String color) {
        super();
        this.glassId = glassId;
        this.pieces = pieces;
        this.width = width;
        this.height = height;
        this.thickness = thickness;
        this.color = color;
    }
 
    @Transient
    @JsonIgnore
    public String getDescription() {
        return this.thickness + "mm " 
                + this.width + "*" + this.height + "mm " 
                + this.color + " " + this.pieces + "/" + this.pieces;
    }
}