PreparesecondaryEntity.java 22.3 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 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
package com.air.agent.imf.bean;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

/**
 * Created by cohesion on 2017/8/9.
 * <p/>
 * 预配舱单分单表
 */
@Entity
@Table(name = "preparesecondary")
public class PreparesecondaryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	private String unlodingcode;// 卸货地代码
	private String cnecusid;// 收货人代码
	private String shpcusid;// 发货人代码
	/**
	 * 发货人aeo
	 */
	private String shpaeo;
	/**
	 * 收货人aeo
	 */
	private String cneaeo;
	private String autoid;
	/**
	 * 主单号
	 */
	private String waybillnomaster;
	/**
	 * 分单号
	 */
	private String waybillnosecondary;
	/**
	 * 总重量
	 */
	private String totalweight;
	/**
	 * 总件数
	 */
	private String totalpiece;
	/**
	 * 舱单件数
	 */
	private String preparepiece;
	/**
	 * 舱单重量
	 */
	private String prepareweight;
	/**
	 * 货物描述
	 */
	private String productname;
	/**
	 * 装载日期
	 */
	private Date stowagedate;
	/**
	 * 创建日期
	 */
	private Date createdate;
	/**
	 * 预配主单表主键
	 */
	private Long preparemasterid;
	/**
	 * 航班日期
	 */
	private Date flightdate;
	/**
	 * 起始地
	 */
	private String originatingstation;
	/**
	 * 目的地
	 */
	private String destinationstation;
	/**
	 * 代理人代码
	 */
	private String agentcompanycode;
	/**
	 * 状态
	 */
	private String status;
	/**
	 * 承运人
	 */
	private String carrier;
	/**
	 * 海关状态
	 */
	private String customsstatus;
	/**
	 * 付费方式
	 */
	private String paymode;
	/**
	 * 特货代码
	 */
	private String specialgoodscode;
	/**
	 * 海关关区
	 */
	private String customscode;
	/**
	 * 代理人
	 */
	private String agentman;
	/**
	 * 代理人公司
	 */
	private String agentcompany;
	/**
	 * 回执信息
	 */
	private String receiptinformation;
	/**
	 * UN编号
	 */
	private String unnumber;
	/**
	 * 危险品类别
	 */
	private String category;
	/**
	 * 航班号
	 */
	private String flightno;
	/**
	 * 收货人公司
	 */
	private String sh_company;
	/**
	 * 收货人地址
	 */
	private String sh_address;
	/**
	 * 收货人邮编
	 */
	private String sh_zipcode;
	/**
	 * 收货人城市
	 */
	private String sh_city;
	/**
	 * 收货人洲名
	 */
	private String sh_deltaname;
	/**
	 * 收货人国家名字
	 */
	private String sh_country;
	/**
	 * 收货人电话
	 */
	private String sh_telephone;
	/**
	 * 收货人传真
	 */
	private String sh_fax;
	/**
	 * 收货人名字
	 */
	private String sh_name;
	/**
	 * 发货人公司
	 */
	private String co_company;
	/**
	 * 发货人地址
	 */
	private String co_address;
	/**
	 * 发货人邮编
	 */
	private String co_zipcode;
	/**
	 * 发货人城市
	 */
	private String co_city;
	/**
	 * 发货人洲名
	 */
	private String co_deltaname;
	/**
	 * 发货人国家名字
	 */
	private String co_country;
	/**
	 * 发货人电话
	 */
	private String co_telephone;
	/**
	 * 发货人传真
	 */
	private String co_fax;
	/**
	 * 发货人名字
	 */
	private String co_name;
	/**
	 * 到达站
	 */
	private String reach_station;
	/**
	 * 承运人
	 */
	private String carrier1;
	/**
	 * 到达站
	 */
	private String reach_station1;
	/**
	 * 承运人
	 */
	private String carrier2;
	/**
	 * 到达站
	 */
	private String reach_station2;
	/**
	 * 货物品名
	 */
	private String name_ofgoods;
	/**
	 * 交运货站
	 */
	private String delivery_station;

	/**
	 * 收货人省份代码
	 */
	private String sh_provincecode;
	/**
	 * 收货人省份
	 */
	private String sh_provincename;
	/**
	 * 交运件数
	 */
	private String de_number;
	/**
	 * 交运重量
	 */
	private String de_weight;
	/**
	 * 交运计费重量
	 */
	private String de_chweight;
	/**
	 * 交运体尺寸
	 */
	private String de_size;
	/**
	 * 交运体积
	 */
	private String de_volume;
	/**
	 * 交运类型
	 */
	private String de_type;
	/**
	 * 交运中转站
	 */
	private String de_trstation;
	/**
	 * 交运包装信息
	 */
	private String de_packing;
	/**
	 * 交运备注
	 */
	private String de_remarks;

	/**
	 * 交运发送状态 1发送
	 */
	private Integer de_ids;
	// 回执代码
	private String response_code;
	// 回执文本
	private String response_text;

	private Long save_time;

	private Long USER_ID;

	private Date createDate;
	private Date modifyDate;
	private Long creator;
	private Long modifier;

	/**
	 * 是否删除 1删除 在里不让在修改主单号
	 */
	private Integer isdelete = 0;

	protected Long id;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
	@Column(name = "ID")
	public Long getId() {
		return id;
	}

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

	@Column(name = "CREATE_DATE", updatable = false)
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "MODIFY_DATE")
	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	@Column(name = "IS_DELETE")
	public Integer getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}

	public String getUnlodingcode() {
		return StringUtils.isBlank(unlodingcode) ? getDestinationstation() : unlodingcode;
	}

	public void setUnlodingcode(String unlodingcode) {
		this.unlodingcode = unlodingcode;
	}

	public String getCnecusid() {
		return cnecusid;
	}

	public void setCnecusid(String cnecusid) {
		this.cnecusid = cnecusid;
	}

	public String getShpcusid() {
		return shpcusid;
	}

	public void setShpcusid(String shpcusid) {
		this.shpcusid = shpcusid;
	}

	public String getShpaeo() {
		return shpaeo;
	}

	public void setShpaeo(String shpaeo) {
		this.shpaeo = shpaeo;
	}

	public String getCneaeo() {
		return cneaeo;
	}

	public void setCneaeo(String cneaeo) {
		this.cneaeo = cneaeo;
	}

	@Column(name = "USER_ID")
	public Long getUSER_ID() {
		return USER_ID;
	}

	public void setUSER_ID(Long uSER_ID) {
		USER_ID = uSER_ID;
	}

	@Column(name = "SAVE_TIME")
	public Long getSave_time() {
		return save_time;
	}

	public void setSave_time(Long save_time) {
		this.save_time = save_time;
	}

	@Column(name = "RESPONSE_CODE")
	public String getResponse_code() {
		return response_code;
	}

	public void setResponse_code(String response_code) {
		this.response_code = response_code;
	}

	@Column(name = "RESPONSE_TEXT")
	public String getResponse_text() {
		return response_text;
	}

	public void setResponse_text(String response_text) {
		this.response_text = response_text;
	}

	@Column(name = "DE_IDS")
	public Integer getDe_ids() {
		return de_ids;
	}

	public void setDe_ids(Integer de_ids) {
		this.de_ids = de_ids;
	}

	@Column(name = "DE_NUMBER")
	public String getDe_number() {
		return getTotalpiece();
	}

	public void setDe_number(String de_number) {
		this.de_number = de_number;
	}

	@Column(name = "DE_WEIGHT")
	public String getDe_weight() {
		return getTotalweight();
	}

	public void setDe_weight(String de_weight) {
		this.de_weight = de_weight;
	}

	@Column(name = "DE_CHWEIGHT")
	public String getDe_chweight() {
		return getTotalweight();
	}

	public void setDe_chweight(String de_chweight) {
		this.de_chweight = de_chweight;
	}

	@Column(name = "DE_SIZE")
	public String getDe_size() {
		return de_size;
	}

	public void setDe_size(String de_size) {
		this.de_size = de_size;
	}

	@Column(name = "DE_VOLUME")
	public String getDe_volume() {
		return de_volume;
	}

	public void setDe_volume(String de_volume) {
		this.de_volume = de_volume;
	}

	@Column(name = "DE_TYPE")
	public String getDe_type() {
		return de_type;
	}

	public void setDe_type(String de_type) {
		this.de_type = de_type;
	}

	@Column(name = "DE_TRSTATION")
	public String getDe_trstation() {
		return de_trstation;
	}

	public void setDe_trstation(String de_trstation) {
		this.de_trstation = de_trstation;
	}

	@Column(name = "DE_PACKING")
	public String getDe_packing() {
		return de_packing;
	}

	public void setDe_packing(String de_packing) {
		this.de_packing = de_packing;
	}

	@Column(name = "DE_REMARKS")
	public String getDe_remarks() {
		return de_remarks;
	}

	public void setDe_remarks(String de_remarks) {
		this.de_remarks = de_remarks;
	}

	@Column(name = "SH_PROVINCECODE")
	public String getSh_provincecode() {
		return sh_provincecode;
	}

	public void setSh_provincecode(String sh_provincecode) {
		this.sh_provincecode = sh_provincecode;
	}

	@Column(name = "SH_PROVINCENAME")
	public String getSh_provincename() {
		return sh_provincename;
	}

	public void setSh_provincename(String sh_provincename) {
		this.sh_provincename = sh_provincename;
	}

	@Column(name = "FLIGHTNO")
	public String getFlightno() {
		return flightno;
	}

	public void setFlightno(String flightno) {
		this.flightno = flightno;
	}

	@Column(name = "AUTOID")
	public String getAutoid() {
		return autoid;
	}

	public void setAutoid(String autoid) {
		this.autoid = autoid;
	}

	@Column(name = "WAYBILLNOMASTER")
	public String getWaybillnomaster() {
		return waybillnomaster;
	}

	public void setWaybillnomaster(String waybillnomaster) {
		this.waybillnomaster = waybillnomaster;
	}

	@Column(name = "WAYBILLNOSECONDARY")
	public String getWaybillnosecondary() {
		return waybillnosecondary;
	}

	public void setWaybillnosecondary(String waybillnosecondary) {
		this.waybillnosecondary = waybillnosecondary;
	}

	@Column(name = "TOTALWEIGHT")
	public String getTotalweight() {
		return totalweight;
	}

	public void setTotalweight(String totalweight) {
		this.totalweight = totalweight;
	}

	@Column(name = "TOTALPIECE")
	public String getTotalpiece() {
		return totalpiece;
	}

	public void setTotalpiece(String totalpiece) {
		this.totalpiece = totalpiece;
	}

	@Column(name = "PREPAREPIECE")
	public String getPreparepiece() {
		return getTotalpiece();
	}

	public void setPreparepiece(String preparepiece) {
		this.preparepiece = preparepiece;
	}

	@Column(name = "PREPAREWEIGHT")
	public String getPrepareweight() {
		return getTotalweight();
	}

	public void setPrepareweight(String prepareweight) {
		this.prepareweight = prepareweight;
	}

	@Column(name = "PRODUCTNAME")
	public String getProductname() {
		return productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	public Date getStowagedate(String datestr) {
		if (datestr == null)
			return null;

		Calendar calendar = Calendar.getInstance();
		String year = null;
		String time = null;
		if (datestr.indexOf(":") < 0) {
			// 只有日期,没有时分秒等时间
			year = datestr.split(" ")[0];

		} else {
			year = datestr.split(" ")[0];
			time = datestr.split(" ")[1];
		}

		String[] years = year.split("-");
		calendar.set(Integer.parseInt(years[0]), Integer.parseInt(years[1]) - 1, Integer.parseInt(years[2]));
		if (StringUtils.isNotBlank(time)) {
			String[] times = time.split(":");
			calendar.set(Integer.parseInt(years[0]), Integer.parseInt(years[1]) - 1, Integer.parseInt(years[2]),
					Integer.parseInt(times[0]), Integer.parseInt(times[1]), Integer.parseInt(times[2]));
		}
		return calendar.getTime();
	}

	@Column(name = "STOWAGEDATE")
	public Date getStowagedate() {
//		return stowagedate;
		return new Date(System.currentTimeMillis() + 6 * 3600);
	}

	public void setStowagedate(Date stowagedate) {
		this.stowagedate = stowagedate;
	}

	@Column(name = "CREATEDATE")
	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	@Column(name = "PREPAREMASTERID")
	public Long getPreparemasterid() {
		return preparemasterid;
	}

	public void setPreparemasterid(Long preparemasterid) {
		this.preparemasterid = preparemasterid;
	}

	@Column(name = "FLIGHTDATE")
	public Date getFlightdate() {
		return flightdate;
	}

	public void setFlightdate(Date flightdate) {
		this.flightdate = flightdate;
	}

	@Column(name = "ORIGINATINGSTATION")
	public String getOriginatingstation() {
		return originatingstation;
	}

	public void setOriginatingstation(String originatingstation) {
		this.originatingstation = originatingstation;
	}

	@Column(name = "DESTINATIONSTATION")
	public String getDestinationstation() {
		return destinationstation;
	}

	public void setDestinationstation(String destinationstation) {
		this.destinationstation = destinationstation;
	}

	@Column(name = "AGENTCOMPANYCODE")
	public String getAgentcompanycode() {
		return agentcompanycode;
	}

	public void setAgentcompanycode(String agentcompanycode) {
		this.agentcompanycode = agentcompanycode;
	}

	@Column(name = "STATUS")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "CARRIER")
	public String getCarrier() {
		return carrier;
	}

	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}

	@Column(name = "CUSTOMSSTATUS")
	public String getCustomsstatus() {
		return customsstatus;
	}

	public void setCustomsstatus(String customsstatus) {
		this.customsstatus = customsstatus;
	}

	@Column(name = "PAYMODE")
	public String getPaymode() {
		return paymode;
	}

	public void setPaymode(String paymode) {
		this.paymode = paymode;
	}

	@Column(name = "SPECIALGOODSCODE")
	public String getSpecialgoodscode() {
		return specialgoodscode;
	}

	public void setSpecialgoodscode(String specialgoodscode) {
		this.specialgoodscode = specialgoodscode;
	}

	@Column(name = "CUSTOMSCODE")
	public String getCustomscode() {
		return customscode;
	}

	public void setCustomscode(String customscode) {
		this.customscode = customscode;
	}

	@Column(name = "AGENTMAN")
	public String getAgentman() {
		return agentman;
	}

	public void setAgentman(String agentman) {
		this.agentman = agentman;
	}

	@Column(name = "AGENTCOMPANY")
	public String getAgentcompany() {
		return agentcompany;
	}

	public void setAgentcompany(String agentcompany) {
		this.agentcompany = agentcompany;
	}

	@Column(name = "RECEIPTINFORMATION")
	public String getReceiptinformation() {
		return receiptinformation;
	}

	public void setReceiptinformation(String receiptinformation) {
		this.receiptinformation = receiptinformation;
	}

	@Column(name = "UNNUMBER")
	public String getUnnumber() {
		return unnumber;
	}

	public void setUnnumber(String unnumber) {
		this.unnumber = unnumber;
	}

	@Column(name = "CATEGORY")
	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Column(name = "SH_COMPANY")
	public String getSh_company() {
		return sh_company;
	}

	public void setSh_company(String sh_company) {
		this.sh_company = sh_company;
	}

	@Column(name = "SH_ADDRESS")
	public String getSh_address() {
		return sh_address;
	}

	public void setSh_address(String sh_address) {
		this.sh_address = sh_address;
	}

	@Column(name = "SH_ZIPCODE")
	public String getSh_zipcode() {
		return sh_zipcode;
	}

	public void setSh_zipcode(String sh_zipcode) {
		this.sh_zipcode = sh_zipcode;
	}

	@Column(name = "SH_CITY")
	public String getSh_city() {
		return sh_city;
	}

	public void setSh_city(String sh_city) {
		this.sh_city = sh_city;
	}

	@Column(name = "SH_DELTANAME")
	public String getSh_deltaname() {
		return sh_deltaname;
	}

	public void setSh_deltaname(String sh_deltaname) {
		this.sh_deltaname = sh_deltaname;
	}

	@Column(name = "SH_COUNTRY")
	public String getSh_country() {
		return sh_country != null ? sh_country.toUpperCase() : "";
	}

	public void setSh_country(String sh_country) {
		this.sh_country = sh_country;
	}

	@Column(name = "SH_TELEPHONE")
	public String getSh_telephone() {
		return sh_telephone;
	}

	public void setSh_telephone(String sh_telephone) {
		this.sh_telephone = sh_telephone;
	}

	@Column(name = "SH_FAX")
	public String getSh_fax() {
		return sh_fax;
	}

	public void setSh_fax(String sh_fax) {
		this.sh_fax = sh_fax;
	}

	@Column(name = "SH_NAME")
	public String getSh_name() {
		return sh_name;
	}

	public void setSh_name(String sh_name) {
		this.sh_name = sh_name;
	}

	@Column(name = "CO_COMPANY")
	public String getCo_company() {
		return co_company;
	}

	public void setCo_company(String co_company) {
		this.co_company = co_company;
	}

	@Column(name = "CO_ADDRESS")
	public String getCo_address() {
		return co_address;
	}

	public void setCo_address(String co_address) {
		this.co_address = co_address;
	}

	@Column(name = "CO_ZIPCODE")
	public String getCo_zipcode() {
		return co_zipcode;
	}

	public void setCo_zipcode(String co_zipcode) {
		this.co_zipcode = co_zipcode;
	}

	@Column(name = "CO_CITY")
	public String getCo_city() {
		return co_city;
	}

	public void setCo_city(String co_city) {
		this.co_city = co_city;
	}

	@Column(name = "CO_DELTANAME")
	public String getCo_deltaname() {
		return co_deltaname;
	}

	public void setCo_deltaname(String co_deltaname) {
		this.co_deltaname = co_deltaname;
	}

	@Column(name = "CO_COUNTRY")
	public String getCo_country() {
		return co_country;
	}

	public void setCo_country(String co_country) {
		this.co_country = co_country;
	}

	@Column(name = "CO_TELEPHONE")
	public String getCo_telephone() {
		return co_telephone;
	}

	public void setCo_telephone(String co_telephone) {
		this.co_telephone = co_telephone;
	}

	@Column(name = "CO_FAX")
	public String getCo_fax() {
		return co_fax;
	}

	public void setCo_fax(String co_fax) {
		this.co_fax = co_fax;
	}

	@Column(name = "CO_NAME")
	public String getCo_name() {
		return co_name;
	}

	public void setCo_name(String co_name) {
		this.co_name = co_name;
	}

	@Column(name = "REACH_STATION")
	public String getReach_station() {
		return StringUtils.isBlank(reach_station) ? getDestinationstation() : reach_station;
	}

	public void setReach_station(String reach_station) {
		this.reach_station = reach_station;
	}

	@Column(name = "CARRIER1")
	public String getCarrier1() {
		return carrier1;
	}

	public void setCarrier1(String carrier1) {
		this.carrier1 = carrier1;
	}

	@Column(name = "REACH_STATION1")
	public String getReach_station1() {
		return reach_station1;
	}

	public void setReach_station1(String reach_station1) {
		this.reach_station1 = reach_station1;
	}

	@Column(name = "CARRIER2")
	public String getCarrier2() {
		return carrier2;
	}

	public void setCarrier2(String carrier2) {
		this.carrier2 = carrier2;
	}

	@Column(name = "REACH_STATION2")
	public String getReach_station2() {
		return reach_station2;
	}

	public void setReach_station2(String reach_station2) {
		this.reach_station2 = reach_station2;
	}

	@Column(name = "NAME_OFGOODS")
	public String getName_ofgoods() {
		return name_ofgoods;
	}

	public void setName_ofgoods(String name_ofgoods) {
		this.name_ofgoods = name_ofgoods;
	}

	@Column(name = "DELIVERY_STATION")
	public String getDelivery_station() {
		return delivery_station;
	}

	public void setDelivery_station(String delivery_station) {
		this.delivery_station = delivery_station;
	}

	// 主要用于List的contains函数里
	public boolean equals(Object mme) {
		if (mme == null)
			return false;
		PreparesecondaryEntity pe = (PreparesecondaryEntity) mme;
		if (pe.getCo_company() == null && this.getCo_company() == null)
			return true;
		else if (this.getCo_company() != null) {
			// 在值相等的情况下,判断时间的大小
			if (this.getCo_company().equals(pe.getCo_company())) {
				if (this.getSave_time() == null)
					return true;
				else if (pe.getSave_time() == null)
					return false;
				else
					return this.getSave_time() > pe.getSave_time();
			}
		}
		return false;
	}

	@Override
	public String toString() {
		return "PreparesecondaryEntity [unlodingcode=" + unlodingcode + ", cnecusid=" + cnecusid + ", shpcusid="
				+ shpcusid + ", shpaeo=" + shpaeo + ", cneaeo=" + cneaeo + ", autoid=" + autoid + ", waybillnomaster="
				+ waybillnomaster + ", waybillnosecondary=" + waybillnosecondary + ", totalweight=" + totalweight
				+ ", totalpiece=" + totalpiece + ", preparepiece=" + preparepiece + ", prepareweight=" + prepareweight
				+ ", productname=" + productname + ", stowagedate=" + stowagedate + ", createdate=" + createdate
				+ ", preparemasterid=" + preparemasterid + ", flightdate=" + flightdate + ", originatingstation="
				+ originatingstation + ", destinationstation=" + destinationstation + ", agentcompanycode="
				+ agentcompanycode + ", status=" + status + ", carrier=" + carrier + ", customsstatus=" + customsstatus
				+ ", paymode=" + paymode + ", specialgoodscode=" + specialgoodscode + ", customscode=" + customscode
				+ ", agentman=" + agentman + ", agentcompany=" + agentcompany + ", receiptinformation="
				+ receiptinformation + ", unnumber=" + unnumber + ", category=" + category + ", flightno=" + flightno
				+ ", sh_company=" + sh_company + ", sh_address=" + sh_address + ", sh_zipcode=" + sh_zipcode
				+ ", sh_city=" + sh_city + ", sh_deltaname=" + sh_deltaname + ", sh_country=" + sh_country
				+ ", sh_telephone=" + sh_telephone + ", sh_fax=" + sh_fax + ", sh_name=" + sh_name + ", co_company="
				+ co_company + ", co_address=" + co_address + ", co_zipcode=" + co_zipcode + ", co_city=" + co_city
				+ ", co_deltaname=" + co_deltaname + ", co_country=" + co_country + ", co_telephone=" + co_telephone
				+ ", co_fax=" + co_fax + ", co_name=" + co_name + ", reach_station=" + reach_station + ", carrier1="
				+ carrier1 + ", reach_station1=" + reach_station1 + ", carrier2=" + carrier2 + ", reach_station2="
				+ reach_station2 + ", name_ofgoods=" + name_ofgoods + ", delivery_station=" + delivery_station
				+ ", sh_provincecode=" + sh_provincecode + ", sh_provincename=" + sh_provincename + ", de_number="
				+ de_number + ", de_weight=" + de_weight + ", de_chweight=" + de_chweight + ", de_size=" + de_size
				+ ", de_volume=" + de_volume + ", de_type=" + de_type + ", de_trstation=" + de_trstation
				+ ", de_packing=" + de_packing + ", de_remarks=" + de_remarks + ", de_ids=" + de_ids
				+ ", response_code=" + response_code + ", response_text=" + response_text + ", save_time=" + save_time
				+ ", USER_ID=" + USER_ID + ", createDate=" + createDate + ", modifyDate=" + modifyDate + ", creator="
				+ creator + ", modifier=" + modifier + ", isdelete=" + isdelete + ", id=" + id + "]";
	}

}