package com.bailuntec.domain.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class TOrderOriginal extends TOrderOriginalKey {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OrderNoPlatform
     *
     * @mbg.generated
     */
    private String ordernoplatform;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OrderNoSystem
     *
     * @mbg.generated
     */
    private String ordernosystem;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OrderSource
     *
     * @mbg.generated
     */
    private String ordersource;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OrderStatus
     *
     * @mbg.generated
     */
    private String orderstatus;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OrderSite
     *
     * @mbg.generated
     */
    private String ordersite;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.SellAccount
     *
     * @mbg.generated
     */
    private String sellaccount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OrderAmount
     *
     * @mbg.generated
     */
    private BigDecimal orderamount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.ShipWarehouse
     *
     * @mbg.generated
     */
    private String shipwarehouse;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.ProductTitle
     *
     * @mbg.generated
     */
    private String producttitle;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OrderTime
     *
     * @mbg.generated
     */
    private LocalDateTime ordertime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.PaypalInAccount
     *
     * @mbg.generated
     */
    private String paypalinaccount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.PaypalOutAccount
     *
     * @mbg.generated
     */
    private String paypaloutaccount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.BuyerId
     *
     * @mbg.generated
     */
    private String buyerid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.BuyerName
     *
     * @mbg.generated
     */
    private String buyername;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.Country
     *
     * @mbg.generated
     */
    private String country;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.Address1
     *
     * @mbg.generated
     */
    private String address1;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.Address2
     *
     * @mbg.generated
     */
    private String address2;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.City
     *
     * @mbg.generated
     */
    private String city;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.Province
     *
     * @mbg.generated
     */
    private String province;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.PostCode
     *
     * @mbg.generated
     */
    private String postcode;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.PhoneNumber
     *
     * @mbg.generated
     */
    private String phonenumber;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.MobileNumber
     *
     * @mbg.generated
     */
    private Integer mobilenumber;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.Email
     *
     * @mbg.generated
     */
    private String email;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.CreateTime
     *
     * @mbg.generated
     */
    private LocalDateTime createtime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.UpdateTime
     *
     * @mbg.generated
     */
    private LocalDateTime updatetime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.Hid
     *
     * @mbg.generated
     */
    private Long hid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.ItemId
     *
     * @mbg.generated
     */
    private String itemid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.Freight
     *
     * @mbg.generated
     */
    private BigDecimal freight;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.IsSystemShip
     *
     * @mbg.generated
     */
    private Integer issystemship;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OmsUpdateTime
     *
     * @mbg.generated
     */
    private LocalDateTime omsupdatetime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OmsCreateTime
     *
     * @mbg.generated
     */
    private LocalDateTime omscreatetime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.MatchTime
     *
     * @mbg.generated
     */
    private LocalDateTime matchtime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OriginalCurrency
     *
     * @mbg.generated
     */
    private String originalcurrency;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.OriginalTotal
     *
     * @mbg.generated
     */
    private BigDecimal originaltotal;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.IsRefund
     *
     * @mbg.generated
     */
    private Integer isrefund;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.BjPayTime
     *
     * @mbg.generated
     */
    private LocalDateTime bjpaytime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.InterceptStatus
     *
     * @mbg.generated
     */
    private Integer interceptstatus;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original._ts
     *
     * @mbg.generated
     */
    private LocalDateTime ts;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.is_abroad
     *
     * @mbg.generated
     */
    private Integer isAbroad;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.country_en_name
     *
     * @mbg.generated
     */
    private String countryEnName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_order_original.order_system
     *
     * @mbg.generated
     */
    private String orderSystem;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_original
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ordernoplatform=").append(ordernoplatform);
        sb.append(", ordernosystem=").append(ordernosystem);
        sb.append(", ordersource=").append(ordersource);
        sb.append(", orderstatus=").append(orderstatus);
        sb.append(", ordersite=").append(ordersite);
        sb.append(", sellaccount=").append(sellaccount);
        sb.append(", orderamount=").append(orderamount);
        sb.append(", shipwarehouse=").append(shipwarehouse);
        sb.append(", producttitle=").append(producttitle);
        sb.append(", ordertime=").append(ordertime);
        sb.append(", paypalinaccount=").append(paypalinaccount);
        sb.append(", paypaloutaccount=").append(paypaloutaccount);
        sb.append(", buyerid=").append(buyerid);
        sb.append(", buyername=").append(buyername);
        sb.append(", country=").append(country);
        sb.append(", address1=").append(address1);
        sb.append(", address2=").append(address2);
        sb.append(", city=").append(city);
        sb.append(", province=").append(province);
        sb.append(", postcode=").append(postcode);
        sb.append(", phonenumber=").append(phonenumber);
        sb.append(", mobilenumber=").append(mobilenumber);
        sb.append(", email=").append(email);
        sb.append(", createtime=").append(createtime);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", hid=").append(hid);
        sb.append(", itemid=").append(itemid);
        sb.append(", freight=").append(freight);
        sb.append(", issystemship=").append(issystemship);
        sb.append(", omsupdatetime=").append(omsupdatetime);
        sb.append(", omscreatetime=").append(omscreatetime);
        sb.append(", matchtime=").append(matchtime);
        sb.append(", originalcurrency=").append(originalcurrency);
        sb.append(", originaltotal=").append(originaltotal);
        sb.append(", isrefund=").append(isrefund);
        sb.append(", bjpaytime=").append(bjpaytime);
        sb.append(", interceptstatus=").append(interceptstatus);
        sb.append(", ts=").append(ts);
        sb.append(", isAbroad=").append(isAbroad);
        sb.append(", countryEnName=").append(countryEnName);
        sb.append(", orderSystem=").append(orderSystem);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_original
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TOrderOriginal other = (TOrderOriginal) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPaytime() == null ? other.getPaytime() == null : this.getPaytime().equals(other.getPaytime()))
            && (this.getOrdernoplatform() == null ? other.getOrdernoplatform() == null : this.getOrdernoplatform().equals(other.getOrdernoplatform()))
            && (this.getOrdernosystem() == null ? other.getOrdernosystem() == null : this.getOrdernosystem().equals(other.getOrdernosystem()))
            && (this.getOrdersource() == null ? other.getOrdersource() == null : this.getOrdersource().equals(other.getOrdersource()))
            && (this.getOrderstatus() == null ? other.getOrderstatus() == null : this.getOrderstatus().equals(other.getOrderstatus()))
            && (this.getOrdersite() == null ? other.getOrdersite() == null : this.getOrdersite().equals(other.getOrdersite()))
            && (this.getSellaccount() == null ? other.getSellaccount() == null : this.getSellaccount().equals(other.getSellaccount()))
            && (this.getOrderamount() == null ? other.getOrderamount() == null : this.getOrderamount().equals(other.getOrderamount()))
            && (this.getShipwarehouse() == null ? other.getShipwarehouse() == null : this.getShipwarehouse().equals(other.getShipwarehouse()))
            && (this.getProducttitle() == null ? other.getProducttitle() == null : this.getProducttitle().equals(other.getProducttitle()))
            && (this.getOrdertime() == null ? other.getOrdertime() == null : this.getOrdertime().equals(other.getOrdertime()))
            && (this.getPaypalinaccount() == null ? other.getPaypalinaccount() == null : this.getPaypalinaccount().equals(other.getPaypalinaccount()))
            && (this.getPaypaloutaccount() == null ? other.getPaypaloutaccount() == null : this.getPaypaloutaccount().equals(other.getPaypaloutaccount()))
            && (this.getBuyerid() == null ? other.getBuyerid() == null : this.getBuyerid().equals(other.getBuyerid()))
            && (this.getBuyername() == null ? other.getBuyername() == null : this.getBuyername().equals(other.getBuyername()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getAddress1() == null ? other.getAddress1() == null : this.getAddress1().equals(other.getAddress1()))
            && (this.getAddress2() == null ? other.getAddress2() == null : this.getAddress2().equals(other.getAddress2()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getPostcode() == null ? other.getPostcode() == null : this.getPostcode().equals(other.getPostcode()))
            && (this.getPhonenumber() == null ? other.getPhonenumber() == null : this.getPhonenumber().equals(other.getPhonenumber()))
            && (this.getMobilenumber() == null ? other.getMobilenumber() == null : this.getMobilenumber().equals(other.getMobilenumber()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getItemid() == null ? other.getItemid() == null : this.getItemid().equals(other.getItemid()))
            && (this.getFreight() == null ? other.getFreight() == null : this.getFreight().equals(other.getFreight()))
            && (this.getIssystemship() == null ? other.getIssystemship() == null : this.getIssystemship().equals(other.getIssystemship()))
            && (this.getOmsupdatetime() == null ? other.getOmsupdatetime() == null : this.getOmsupdatetime().equals(other.getOmsupdatetime()))
            && (this.getOmscreatetime() == null ? other.getOmscreatetime() == null : this.getOmscreatetime().equals(other.getOmscreatetime()))
            && (this.getMatchtime() == null ? other.getMatchtime() == null : this.getMatchtime().equals(other.getMatchtime()))
            && (this.getOriginalcurrency() == null ? other.getOriginalcurrency() == null : this.getOriginalcurrency().equals(other.getOriginalcurrency()))
            && (this.getOriginaltotal() == null ? other.getOriginaltotal() == null : this.getOriginaltotal().equals(other.getOriginaltotal()))
            && (this.getIsrefund() == null ? other.getIsrefund() == null : this.getIsrefund().equals(other.getIsrefund()))
            && (this.getBjpaytime() == null ? other.getBjpaytime() == null : this.getBjpaytime().equals(other.getBjpaytime()))
            && (this.getInterceptstatus() == null ? other.getInterceptstatus() == null : this.getInterceptstatus().equals(other.getInterceptstatus()))
            && (this.getTs() == null ? other.getTs() == null : this.getTs().equals(other.getTs()))
            && (this.getIsAbroad() == null ? other.getIsAbroad() == null : this.getIsAbroad().equals(other.getIsAbroad()))
            && (this.getCountryEnName() == null ? other.getCountryEnName() == null : this.getCountryEnName().equals(other.getCountryEnName()))
            && (this.getOrderSystem() == null ? other.getOrderSystem() == null : this.getOrderSystem().equals(other.getOrderSystem()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_original
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPaytime() == null) ? 0 : getPaytime().hashCode());
        result = prime * result + ((getOrdernoplatform() == null) ? 0 : getOrdernoplatform().hashCode());
        result = prime * result + ((getOrdernosystem() == null) ? 0 : getOrdernosystem().hashCode());
        result = prime * result + ((getOrdersource() == null) ? 0 : getOrdersource().hashCode());
        result = prime * result + ((getOrderstatus() == null) ? 0 : getOrderstatus().hashCode());
        result = prime * result + ((getOrdersite() == null) ? 0 : getOrdersite().hashCode());
        result = prime * result + ((getSellaccount() == null) ? 0 : getSellaccount().hashCode());
        result = prime * result + ((getOrderamount() == null) ? 0 : getOrderamount().hashCode());
        result = prime * result + ((getShipwarehouse() == null) ? 0 : getShipwarehouse().hashCode());
        result = prime * result + ((getProducttitle() == null) ? 0 : getProducttitle().hashCode());
        result = prime * result + ((getOrdertime() == null) ? 0 : getOrdertime().hashCode());
        result = prime * result + ((getPaypalinaccount() == null) ? 0 : getPaypalinaccount().hashCode());
        result = prime * result + ((getPaypaloutaccount() == null) ? 0 : getPaypaloutaccount().hashCode());
        result = prime * result + ((getBuyerid() == null) ? 0 : getBuyerid().hashCode());
        result = prime * result + ((getBuyername() == null) ? 0 : getBuyername().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getAddress1() == null) ? 0 : getAddress1().hashCode());
        result = prime * result + ((getAddress2() == null) ? 0 : getAddress2().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getPostcode() == null) ? 0 : getPostcode().hashCode());
        result = prime * result + ((getPhonenumber() == null) ? 0 : getPhonenumber().hashCode());
        result = prime * result + ((getMobilenumber() == null) ? 0 : getMobilenumber().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getItemid() == null) ? 0 : getItemid().hashCode());
        result = prime * result + ((getFreight() == null) ? 0 : getFreight().hashCode());
        result = prime * result + ((getIssystemship() == null) ? 0 : getIssystemship().hashCode());
        result = prime * result + ((getOmsupdatetime() == null) ? 0 : getOmsupdatetime().hashCode());
        result = prime * result + ((getOmscreatetime() == null) ? 0 : getOmscreatetime().hashCode());
        result = prime * result + ((getMatchtime() == null) ? 0 : getMatchtime().hashCode());
        result = prime * result + ((getOriginalcurrency() == null) ? 0 : getOriginalcurrency().hashCode());
        result = prime * result + ((getOriginaltotal() == null) ? 0 : getOriginaltotal().hashCode());
        result = prime * result + ((getIsrefund() == null) ? 0 : getIsrefund().hashCode());
        result = prime * result + ((getBjpaytime() == null) ? 0 : getBjpaytime().hashCode());
        result = prime * result + ((getInterceptstatus() == null) ? 0 : getInterceptstatus().hashCode());
        result = prime * result + ((getTs() == null) ? 0 : getTs().hashCode());
        result = prime * result + ((getIsAbroad() == null) ? 0 : getIsAbroad().hashCode());
        result = prime * result + ((getCountryEnName() == null) ? 0 : getCountryEnName().hashCode());
        result = prime * result + ((getOrderSystem() == null) ? 0 : getOrderSystem().hashCode());
        return result;
    }
}