BusVeh.java
6.48 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
306
307
308
309
310
package com.bsth.data.commonData.entity;
import com.bsth.entity.Cars;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class BusVeh implements Cloneable{
//
private int id;
//公司编号
private String COMPANY_ID;
//分公司名称
private String branche_company;
//分公司代码
private String branche_company_code;
//公司代码
private String business_code;
//车型
private String car_class;
//车辆编码
private String car_code;
//车牌
private String car_plate;
//座位数
private Integer car_seatn_number;
//车辆标准
private String car_standard;
//车辆类型
private String car_type;
//公司名
private String company;
//创建日期
private Date create_date;
//描述
private String descriptions;
//引擎编码1
private String engine_code_one;
//引擎编码2
private String engine_code_two;
//设备编码
private String equipment_code;
//内部编码
private String inside_code;
//报废编码
private String scrap_code;
//报废日期
private Date scrap_date;
//报废状态
private Integer scrap_state;
//是否电车
private Integer sfdc;
//供应商
private String supplier_name;
//售票类型
private Integer ticket_type;
//更新日期
private Date update_date;
//能源类型
private Integer ny_type;
public static Cars convert(BusVeh bv){
Cars cars=new Cars();
cars.setInsideCode(bv.getInside_code());
cars.setBusinessCode(bv.getBusiness_code());
cars.setCompany(bv.getCompany());
cars.setBrancheCompanyCode(bv.getBranche_company_code());
cars.setBrancheCompany(bv.getBranche_company());
cars.setCarCode(bv.getCar_code());
cars.setCarPlate(bv.getCar_plate());
cars.setSupplierName(bv.getSupplier_name());
cars.setEquipmentCode(bv.getEquipment_code());
cars.setCarClass(bv.getCar_class());
cars.setCarSeatnNumber(bv.getCar_seatn_number());
cars.setCarStandard(bv.getCar_standard());
cars.setScrapCode(bv.getScrap_code());
cars.setScrapDate(bv.getScrap_date());
cars.setMakeCodeOne(bv.getEngine_code_one());
cars.setMakeCodeTwo(bv.getEngine_code_two());
cars.setEngineCodeOne(bv.getEngine_code_one());
cars.setEngineCodeTwo(bv.getEngine_code_two());
cars.setCarType(bv.getCar_type());
cars.setSfdc((bv.getSfdc()==null||bv.getSfdc()==0)?false:true);
cars.setDescriptions(bv.getDescriptions());
cars.setScrapState((bv.getScrap_state()==null||bv.getScrap_state()==0)?false:true);
cars.setCreateDate(new java.sql.Date(new Date().getTime()));
cars.setUpdateDate(new java.sql.Date(new Date().getTime()));
cars.setHydrogen(false);
return cars;
}
public static List<Cars> convert(List<BusVeh> busVehs){
List<Cars> list = new ArrayList<>();
for (BusVeh busVeh : busVehs) {
list.add(convert(busVeh));
}
return list;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getCOMPANY_ID() {
return COMPANY_ID;
}
public void setCOMPANY_ID(String COMPANY_ID) {
this.COMPANY_ID = COMPANY_ID;
}
public String getBranche_company() {
return branche_company;
}
public void setBranche_company(String branche_company) {
this.branche_company = branche_company;
}
public String getBranche_company_code() {
return branche_company_code;
}
public void setBranche_company_code(String branche_company_code) {
this.branche_company_code = branche_company_code;
}
public String getBusiness_code() {
return business_code;
}
public void setBusiness_code(String business_code) {
this.business_code = business_code;
}
public String getCar_class() {
return car_class;
}
public void setCar_class(String car_class) {
this.car_class = car_class;
}
public String getCar_code() {
return car_code;
}
public void setCar_code(String car_code) {
this.car_code = car_code;
}
public String getCar_plate() {
return car_plate;
}
public void setCar_plate(String car_plate) {
this.car_plate = car_plate;
}
public Integer getCar_seatn_number() {
return car_seatn_number;
}
public void setCar_seatn_number(Integer car_seatn_number) {
this.car_seatn_number = car_seatn_number;
}
public String getCar_standard() {
return car_standard;
}
public void setCar_standard(String car_standard) {
this.car_standard = car_standard;
}
public String getCar_type() {
return car_type;
}
public void setCar_type(String car_type) {
this.car_type = car_type;
}
public String getCompany() {
return company;
}
public void setCompany(String company) {
this.company = company;
}
public Date getCreate_date() {
return create_date;
}
public void setCreate_date(Date create_date) {
this.create_date = create_date;
}
public String getDescriptions() {
return descriptions;
}
public void setDescriptions(String descriptions) {
this.descriptions = descriptions;
}
public String getEngine_code_one() {
return engine_code_one;
}
public void setEngine_code_one(String engine_code_one) {
this.engine_code_one = engine_code_one;
}
public String getEngine_code_two() {
return engine_code_two;
}
public void setEngine_code_two(String engine_code_two) {
this.engine_code_two = engine_code_two;
}
public String getEquipment_code() {
return equipment_code;
}
public void setEquipment_code(String equipment_code) {
this.equipment_code = equipment_code;
}
public String getInside_code() {
return inside_code;
}
public void setInside_code(String inside_code) {
this.inside_code = inside_code;
}
public String getScrap_code() {
return scrap_code;
}
public void setScrap_code(String scrap_code) {
this.scrap_code = scrap_code;
}
public Date getScrap_date() {
return scrap_date;
}
public void setScrap_date(Date scrap_date) {
this.scrap_date = scrap_date;
}
public Integer getScrap_state() {
return scrap_state;
}
public void setScrap_state(Integer scrap_state) {
this.scrap_state = scrap_state;
}
public Integer getSfdc() {
return sfdc;
}
public void setSfdc(Integer sfdc) {
this.sfdc = sfdc;
}
public String getSupplier_name() {
return supplier_name;
}
public void setSupplier_name(String supplier_name) {
this.supplier_name = supplier_name;
}
public Integer getTicket_type() {
return ticket_type;
}
public void setTicket_type(Integer ticket_type) {
this.ticket_type = ticket_type;
}
public Date getUpdate_date() {
return update_date;
}
public void setUpdate_date(Date update_date) {
this.update_date = update_date;
}
public Integer getNy_type() {
return ny_type;
}
public void setNy_type(Integer ny_type) {
this.ny_type = ny_type;
}
}