Customer.java 6.12 KB
package com.huaheng.pc.general.customer.domain;

import com.huaheng.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;


/**
 * 客户表 customer
 * 
 * @author huaheng
 * @date 2018-08-19
 */
public class Customer extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Integer id;
	/** 仓库Id */
	private Integer warehouseId;
	/** 仓库 */
	private String warehouseCode;
	/** 编码 */
	private String code;
	/** 编码2 */
	private String code2;
	/** 名称 */
	private String name;
	/** 地址1 */
	private String address1;
	/** 地址2 */
	private String address2;
	/** 城市 */
	private String city;
	/** 省份 */
	private String province;
	/** 国家 */
	private String country;
	/** 邮编 */
	private String postalCode;
	/** 联系人 */
	private String attentionTo;
	/** 电话 */
	private String phoneNum;
	/** 手机 */
	private String mobile;
	/** 传真 */
	private String faxNum;
	/** E-mail */
	private String email;
	/** 创建时间 */
	private Date created;
	/** 创建用户 */
	private String createdBy;
	/** 创建时间 */
	private Date lastUpdated;
	/** 更新用户 */
	private String lastUpdatedBy;
	/** 是否有效 */
	private Boolean enable;
	/** 是否删除 */
	private Boolean deleted;
	/** 自定义字段1 */
	private String userDef1;
	/** 自定义字段2 */
	private String userDef2;
	/** 自定义字段3 */
	private String userDef3;

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

	public Integer getId() 
	{
		return id;
	}
	public void setWarehouseId(Integer warehouseId) 
	{
		this.warehouseId = warehouseId;
	}

	public Integer getWarehouseId() 
	{
		return warehouseId;
	}
	public void setWarehouseCode(String warehouseCode) 
	{
		this.warehouseCode = warehouseCode;
	}

	public String getWarehouseCode() 
	{
		return warehouseCode;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setCode2(String code2) 
	{
		this.code2 = code2;
	}

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

	public String getName() 
	{
		return name;
	}
	public void setAddress1(String address1) 
	{
		this.address1 = address1;
	}

	public String getAddress1() 
	{
		return address1;
	}
	public void setAddress2(String address2) 
	{
		this.address2 = address2;
	}

	public String getAddress2() 
	{
		return address2;
	}
	public void setCity(String city) 
	{
		this.city = city;
	}

	public String getCity() 
	{
		return city;
	}
	public void setProvince(String province) 
	{
		this.province = province;
	}

	public String getProvince() 
	{
		return province;
	}
	public void setCountry(String country) 
	{
		this.country = country;
	}

	public String getCountry() 
	{
		return country;
	}
	public void setPostalCode(String postalCode) 
	{
		this.postalCode = postalCode;
	}

	public String getPostalCode() 
	{
		return postalCode;
	}
	public void setAttentionTo(String attentionTo) 
	{
		this.attentionTo = attentionTo;
	}

	public String getAttentionTo() 
	{
		return attentionTo;
	}
	public void setPhoneNum(String phoneNum) 
	{
		this.phoneNum = phoneNum;
	}

	public String getPhoneNum() 
	{
		return phoneNum;
	}
	public void setMobile(String mobile) 
	{
		this.mobile = mobile;
	}

	public String getMobile() 
	{
		return mobile;
	}
	public void setFaxNum(String faxNum) 
	{
		this.faxNum = faxNum;
	}

	public String getFaxNum() 
	{
		return faxNum;
	}
	public void setEmail(String email) 
	{
		this.email = email;
	}

	public String getEmail() 
	{
		return email;
	}
	public void setCreated(Date created) 
	{
		this.created = created;
	}

	public Date getCreated() 
	{
		return created;
	}
	public void setCreatedBy(String createdBy) 
	{
		this.createdBy = createdBy;
	}

	public String getCreatedBy() 
	{
		return createdBy;
	}
	public void setLastUpdated(Date lastUpdated) 
	{
		this.lastUpdated = lastUpdated;
	}

	public Date getLastUpdated() 
	{
		return lastUpdated;
	}
	public void setLastUpdatedBy(String lastUpdatedBy) 
	{
		this.lastUpdatedBy = lastUpdatedBy;
	}

	public String getLastUpdatedBy() 
	{
		return lastUpdatedBy;
	}
	public void setEnable(Boolean enable) 
	{
		this.enable = enable;
	}

	public Boolean getEnable() 
	{
		return enable;
	}
	public void setDeleted(Boolean deleted) 
	{
		this.deleted = deleted;
	}

	public Boolean getDeleted() 
	{
		return deleted;
	}
	public void setUserDef1(String userDef1) 
	{
		this.userDef1 = userDef1;
	}

	public String getUserDef1() 
	{
		return userDef1;
	}
	public void setUserDef2(String userDef2) 
	{
		this.userDef2 = userDef2;
	}

	public String getUserDef2() 
	{
		return userDef2;
	}
	public void setUserDef3(String userDef3) 
	{
		this.userDef3 = userDef3;
	}

	public String getUserDef3() 
	{
		return userDef3;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warehouseId", getWarehouseId())
            .append("warehouseCode", getWarehouseCode())
            .append("code", getCode())
            .append("code2", getCode2())
            .append("name", getName())
            .append("address1", getAddress1())
            .append("address2", getAddress2())
            .append("city", getCity())
            .append("province", getProvince())
            .append("country", getCountry())
            .append("postalCode", getPostalCode())
            .append("attentionTo", getAttentionTo())
            .append("phoneNum", getPhoneNum())
            .append("mobile", getMobile())
            .append("faxNum", getFaxNum())
            .append("email", getEmail())
            .append("created", getCreated())
            .append("createdBy", getCreatedBy())
            .append("lastUpdated", getLastUpdated())
            .append("lastUpdatedBy", getLastUpdatedBy())
            .append("enable", getEnable())
            .append("deleted", getDeleted())
            .append("userDef1", getUserDef1())
            .append("userDef2", getUserDef2())
            .append("userDef3", getUserDef3())
            .toString();
    }
}