Ylb.java
5.61 KB
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
package com.bsth.entity.oil;
import java.text.DecimalFormat;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.springframework.format.annotation.DateTimeFormat;
import com.bsth.data.BasicData;
@Entity
@Table(name = "bsth_c_ylb")
public class Ylb {
@Id
@GeneratedValue
private Integer id;
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date rq;
private String xlbm;
private String ssgsdm;
private String fgsdm;
private String nbbm;
private String jsy;
private Double czlc=0.0;
private Double jzlc=0.0;
private Double czyl=0.0;
private Double jzyl=0.0;
private Double jzl;
private int sfkt;
private String jhsj;
private Double yh=0.0;
private Double sh=0.0;
private String shyy;
private Double zlc=0.0;
private int yhlx;
private String rylx;
private Double ns=0.0;
private Double fyylc=0.0;
private Double jhzlc=0.0;
private Double jhfyylc=0.0;
private int jhzbc;
private int jhbc;
private int sjzbc;
private int sjbc;
private String edituser;
private Date edittime;
private Date createtime;
private int nylx;
//进场顺序(根据最先出场和最后进场来关联车辆的存油量)
private int jcsx;
@Transient
private String bglyh;
@Transient
private String xlname;
@Transient
private String gsname;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Date getRq() {
return rq;
}
public void setRq(Date rq) {
this.rq = rq;
}
public String getXlbm() {
return xlbm;
}
public void setXlbm(String xlbm) {
this.xlbm = xlbm;
}
public String getSsgsdm() {
return ssgsdm;
}
public void setSsgsdm(String ssgsdm) {
this.ssgsdm = ssgsdm;
}
public String getFgsdm() {
return fgsdm;
}
public void setFgsdm(String fgsdm) {
this.fgsdm = fgsdm;
}
public String getNbbm() {
return nbbm;
}
public void setNbbm(String nbbm) {
this.nbbm = nbbm;
}
public String getJsy() {
return jsy;
}
public void setJsy(String jsy) {
this.jsy = jsy;
}
public Double getCzlc() {
return czlc;
}
public void setCzlc(Double czlc) {
this.czlc = czlc;
}
public Double getJzlc() {
return jzlc;
}
public void setJzlc(Double jzlc) {
this.jzlc = jzlc;
}
public Double getCzyl() {
return czyl;
}
public void setCzyl(Double czyl) {
this.czyl = czyl;
}
public Double getJzyl() {
return jzyl;
}
public void setJzyl(Double jzyl) {
this.jzyl = jzyl;
}
public Double getJzl() {
return jzl;
}
public void setJzl(Double jzl) {
this.jzl = jzl;
}
public int getSfkt() {
return sfkt;
}
public void setSfkt(int sfkt) {
this.sfkt = sfkt;
}
public String getJhsj() {
return jhsj;
}
public void setJhsj(String jhsj) {
this.jhsj = jhsj;
}
public Double getYh() {
return yh;
}
public void setYh(Double yh) {
this.yh = yh;
}
public Double getSh() {
return sh;
}
public void setSh(Double sh) {
this.sh = sh;
}
public String getShyy() {
return shyy;
}
public void setShyy(String shyy) {
this.shyy = shyy;
}
public Double getZlc() {
return zlc;
}
public void setZlc(Double zlc) {
this.zlc = zlc;
}
public int getYhlx() {
return yhlx;
}
public void setYhlx(int yhlx) {
this.yhlx = yhlx;
}
public String getRylx() {
return rylx;
}
public void setRylx(String rylx) {
this.rylx = rylx;
}
public Double getNs() {
return ns;
}
public void setNs(Double ns) {
this.ns = ns;
}
public Double getFyylc() {
return fyylc;
}
public void setFyylc(Double fyylc) {
this.fyylc = fyylc;
}
public Double getJhzlc() {
return jhzlc;
}
public void setJhzlc(Double jhzlc) {
this.jhzlc = jhzlc;
}
public Double getJhfyylc() {
return jhfyylc;
}
public void setJhfyylc(Double jhfyylc) {
this.jhfyylc = jhfyylc;
}
public int getJhzbc() {
return jhzbc;
}
public void setJhzbc(int jhzbc) {
this.jhzbc = jhzbc;
}
public int getJhbc() {
return jhbc;
}
public void setJhbc(int jhbc) {
this.jhbc = jhbc;
}
public int getSjzbc() {
return sjzbc;
}
public void setSjzbc(int sjzbc) {
this.sjzbc = sjzbc;
}
public int getSjbc() {
return sjbc;
}
public void setSjbc(int sjbc) {
this.sjbc = sjbc;
}
public String getEdituser() {
return edituser;
}
public void setEdituser(String edituser) {
this.edituser = edituser;
}
public Date getEdittime() {
return edittime;
}
public void setEdittime(Date edittime) {
this.edittime = edittime;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public int getNylx() {
return nylx;
}
public void setNylx(int nylx) {
this.nylx = nylx;
}
public int getJcsx(){
return jcsx;
}
public void setJcsx(int jcsx){
this.jcsx=jcsx;
}
public String getBglyh() {
if(this.getZlc()==0){
return "0.00";
}else{
DecimalFormat df = new DecimalFormat("0.00");
return df.format(this.getYh()/this.getZlc()*100);
}
}
public void setBglyh(String bglyh) {
this.bglyh = bglyh;
}
public String getXlname() {
return BasicData.lineCode2NameMap.get(this.xlbm);
}
public void setXlname(String xlname) {
this.xlname = xlname;
}
public String getGsname() {
return BasicData.nbbm2CompanyCodeMap.get(this.nbbm);
}
public void setGsname(String gsname) {
this.gsname = gsname;
}
}