BusLineBase.java 10.4 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 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
package com.bsth.data.commonData.entity;


import com.bsth.entity.Line;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class BusLineBase implements Cloneable{

	//线路编号
	private String id;
	//线路名称
	private String name;
	//线路编码
	private String line_code;
	//线路英文名
	private String es;
	//线路简称
	private String short_name;
	//配置车辆总数
	private int car_sum_number;
	//空调车辆数量
	private int hvac_car_number;
	//普通车辆数量
	private int ord_car_number;
	//停车场编码
	private String car_park_code;
	//起始站名称
	private String start_station_name;
	//	起始站首班车时间 00:00
	private String start_station_first_time;
	//起始站末班车时间 00:00
	private String start_station_end_time;
	//终点站名称
	private String end_station_name;
	//终点站首班时间 00:00
	private String end_station_first_time;
	//终点站末班时间 00:00
	private String end_station_end_time;
	//所属公司
	private String company;
	//分公司
	private String branche_company;
	//性质(线路类型)
	private String nature;
	//线路等级
	private String level;
	//线路长度
	private double length;
	//线路负责人
	private String charge_name;
	//负责人电话
	private String telephone;
	//是否撤销
	private int destroy;
	//是否夜宵线
	private int supper_line;
	//起始调度电话
	private String start_phone;
	//终点调度电话
	private String end_phone;
	//开辟日期
	private Date open_date;
	//线路沿革
	private String history;
	//上海市线路编码
	private String shanghai_linecode;
	//设备线路编码
	private String eq_linecode;
	//描述
	private String descriptions;
	//创建人
	private String create_by;
	//创建日期
	private Date create_date;
	//修改人
	private String update_by;
	//修改日期
	private Date update_date;
	//收否环线(0常规 1环线)
	private int line_play_type;
	//权证配车数
	private int warrant_car;
/*	//权证日期
	private Integer warrant_date;*/
	//是否运营
	private int sfyy;
	//票价
	private String ticket_price;
	//是否跨区 0-不跨区 1-跨区
	private int region;
	//线路版本ID
	private String line_version_id;

	public static Line convert(BusLineBase busLineBase){
		Line line = new Line();
		line.setName(busLineBase.name);
		line.setLineCode(busLineBase.getLine_code());
		line.setEs(busLineBase.getEs());
		line.setShortName(busLineBase.getShort_name());
		line.setStartStationName(busLineBase.getStart_station_name());
		line.setEndStationName(busLineBase.getEnd_station_name());
		line.setStartStationFirstTime(busLineBase.getStart_station_first_time());
		line.setStartStationEndTime(busLineBase.getStart_station_end_time());
		line.setEndStationFirstTime(busLineBase.getEnd_station_first_time());
		line.setEndStationEndTime(busLineBase.getEnd_station_end_time());
		line.setCompany(busLineBase.getCompany());
		line.setBrancheCompany(busLineBase.getBranche_company());
		line.setNature(busLineBase.getNature());
		line.setLevel(busLineBase.getLevel());
		line.setLength(busLineBase.getLength());
		line.setChargeName(busLineBase.getCharge_name());
		line.setTelephone(busLineBase.getTelephone());
		line.setDestroy(busLineBase.getDestroy());
		line.setSupperLine(busLineBase.getSupper_line());
		line.setSfyy(busLineBase.getSfyy());
		line.setRegion(busLineBase.getRegion());
		line.setStartPhone(busLineBase.getStart_phone());
		line.setEndPhone(busLineBase.getEnd_phone());
		line.setOpenDate(busLineBase.getOpen_date());
		line.setHistory(busLineBase.getHistory());
		line.setShanghaiLinecode(busLineBase.getShanghai_linecode());
		line.setEqLinecode(busLineBase.getEq_linecode());
		line.setCarSumNumber(busLineBase.getCar_sum_number());
		line.setHvacCarNumber(busLineBase.getHvac_car_number());
		line.setOrdCarNumber(busLineBase.getOrd_car_number());
		line.setWarrantCar(busLineBase.getWarrant_car());
		line.setCarParkCode(busLineBase.getCar_park_code());
		line.setLinePlayType(busLineBase.getLine_play_type());
		line.setDescriptions(busLineBase.getDescriptions());
		line.setCreateDate(new java.sql.Date(new Date().getTime()));
		line.setUpdateDate(new java.sql.Date(new Date().getTime()));
		int isUse=0;
		if(busLineBase.getDestroy()==0){
			isUse=1;
		}
		line.setInUse(isUse);
		line.setRemove(0);
		return line;
	}

	public static List<Line> convert(List<BusLineBase> busLineBases){
		List<Line> list = new ArrayList<>();
		for (BusLineBase busLineBase : busLineBases) {
			list.add(convert(busLineBase));
		}
		return list;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLine_code() {
		return line_code;
	}

	public void setLine_code(String line_code) {
		this.line_code = line_code;
	}

	public String getEs() {
		return es;
	}

	public void setEs(String es) {
		this.es = es;
	}

	public String getShort_name() {
		return short_name;
	}

	public void setShort_name(String short_name) {
		this.short_name = short_name;
	}

	public int getCar_sum_number() {
		return car_sum_number;
	}

	public void setCar_sum_number(int car_sum_number) {
		this.car_sum_number = car_sum_number;
	}

	public int getHvac_car_number() {
		return hvac_car_number;
	}

	public void setHvac_car_number(int hvac_car_number) {
		this.hvac_car_number = hvac_car_number;
	}

	public int getOrd_car_number() {
		return ord_car_number;
	}

	public void setOrd_car_number(int ord_car_number) {
		this.ord_car_number = ord_car_number;
	}

	public String getCar_park_code() {
		return car_park_code;
	}

	public void setCar_park_code(String car_park_code) {
		this.car_park_code = car_park_code;
	}

	public String getStart_station_name() {
		return start_station_name;
	}

	public void setStart_station_name(String start_station_name) {
		this.start_station_name = start_station_name;
	}

	public String getStart_station_first_time() {
		return start_station_first_time;
	}

	public void setStart_station_first_time(String start_station_first_time) {
		this.start_station_first_time = start_station_first_time;
	}

	public String getStart_station_end_time() {
		return start_station_end_time;
	}

	public void setStart_station_end_time(String start_station_end_time) {
		this.start_station_end_time = start_station_end_time;
	}

	public String getEnd_station_name() {
		return end_station_name;
	}

	public void setEnd_station_name(String end_station_name) {
		this.end_station_name = end_station_name;
	}

	public String getEnd_station_first_time() {
		return end_station_first_time;
	}

	public void setEnd_station_first_time(String end_station_first_time) {
		this.end_station_first_time = end_station_first_time;
	}

	public String getEnd_station_end_time() {
		return end_station_end_time;
	}

	public void setEnd_station_end_time(String end_station_end_time) {
		this.end_station_end_time = end_station_end_time;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getBranche_company() {
		return branche_company;
	}

	public void setBranche_company(String branche_company) {
		this.branche_company = branche_company;
	}

	public String getNature() {
		return nature;
	}

	public void setNature(String nature) {
		this.nature = nature;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public double getLength() {
		return length;
	}

	public void setLength(double length) {
		this.length = length;
	}

	public String getCharge_name() {
		return charge_name;
	}

	public void setCharge_name(String charge_name) {
		this.charge_name = charge_name;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public int getDestroy() {
		return destroy;
	}

	public void setDestroy(int destroy) {
		this.destroy = destroy;
	}

	public int getSupper_line() {
		return supper_line;
	}

	public void setSupper_line(int supper_line) {
		this.supper_line = supper_line;
	}

	public String getStart_phone() {
		return start_phone;
	}

	public void setStart_phone(String start_phone) {
		this.start_phone = start_phone;
	}

	public String getEnd_phone() {
		return end_phone;
	}

	public void setEnd_phone(String end_phone) {
		this.end_phone = end_phone;
	}

	public Date getOpen_date() {
		return open_date;
	}

	public void setOpen_date(Date open_date) {
		this.open_date = open_date;
	}

	public String getHistory() {
		return history;
	}

	public void setHistory(String history) {
		this.history = history;
	}

	public String getShanghai_linecode() {
		return shanghai_linecode;
	}

	public void setShanghai_linecode(String shanghai_linecode) {
		this.shanghai_linecode = shanghai_linecode;
	}

	public String getEq_linecode() {
		return eq_linecode;
	}

	public void setEq_linecode(String eq_linecode) {
		this.eq_linecode = eq_linecode;
	}

	public String getDescriptions() {
		return descriptions;
	}

	public void setDescriptions(String descriptions) {
		this.descriptions = descriptions;
	}

	public String getCreate_by() {
		return create_by;
	}

	public void setCreate_by(String create_by) {
		this.create_by = create_by;
	}

	public Date getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}

	public String getUpdate_by() {
		return update_by;
	}

	public void setUpdate_by(String update_by) {
		this.update_by = update_by;
	}

	public Date getUpdate_date() {
		return update_date;
	}

	public void setUpdate_date(Date update_date) {
		this.update_date = update_date;
	}

	public int getLine_play_type() {
		return line_play_type;
	}

	public void setLine_play_type(int line_play_type) {
		this.line_play_type = line_play_type;
	}

	public int getWarrant_car() {
		return warrant_car;
	}

	public void setWarrant_car(int warrant_car) {
		this.warrant_car = warrant_car;
	}

	public int getSfyy() {
		return sfyy;
	}

	public void setSfyy(int sfyy) {
		this.sfyy = sfyy;
	}

	public String getTicket_price() {
		return ticket_price;
	}

	public void setTicket_price(String ticket_price) {
		this.ticket_price = ticket_price;
	}

	public int getRegion() {
		return region;
	}

	public void setRegion(int region) {
		this.region = region;
	}

	public String getLine_version_id() {
		return line_version_id;
	}

	public void setLine_version_id(String line_version_id) {
		this.line_version_id = line_version_id;
	}
}