package com.zy.nc.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.math.BigDecimal;
|
import lombok.Data;
|
|
/**
|
*
|
* @TableName ncc_bd_customer_wms
|
*/
|
@TableName(value ="ncc_bd_customer_wms")
|
@Data
|
public class NccBdCustomerWms {
|
/**
|
*
|
*/
|
@TableId
|
private String pkCustomer;
|
|
/**
|
*
|
*/
|
private String code;
|
|
/**
|
*
|
*/
|
private String name;
|
|
/**
|
*
|
*/
|
private String shortname;
|
|
/**
|
*
|
*/
|
private String taxpayerid;
|
|
/**
|
*
|
*/
|
private String khlx;
|
|
/**
|
*
|
*/
|
private String tel1;
|
|
/**
|
*
|
*/
|
private String legalbody;
|
|
/**
|
*
|
*/
|
private BigDecimal nlimitmny;
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
NccBdCustomerWms other = (NccBdCustomerWms) that;
|
return (this.getPkCustomer() == null ? other.getPkCustomer() == null : this.getPkCustomer().equals(other.getPkCustomer()))
|
&& (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
|
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
&& (this.getShortname() == null ? other.getShortname() == null : this.getShortname().equals(other.getShortname()))
|
&& (this.getTaxpayerid() == null ? other.getTaxpayerid() == null : this.getTaxpayerid().equals(other.getTaxpayerid()))
|
&& (this.getKhlx() == null ? other.getKhlx() == null : this.getKhlx().equals(other.getKhlx()))
|
&& (this.getTel1() == null ? other.getTel1() == null : this.getTel1().equals(other.getTel1()))
|
&& (this.getLegalbody() == null ? other.getLegalbody() == null : this.getLegalbody().equals(other.getLegalbody()))
|
&& (this.getNlimitmny() == null ? other.getNlimitmny() == null : this.getNlimitmny().equals(other.getNlimitmny()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getPkCustomer() == null) ? 0 : getPkCustomer().hashCode());
|
result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
|
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
result = prime * result + ((getShortname() == null) ? 0 : getShortname().hashCode());
|
result = prime * result + ((getTaxpayerid() == null) ? 0 : getTaxpayerid().hashCode());
|
result = prime * result + ((getKhlx() == null) ? 0 : getKhlx().hashCode());
|
result = prime * result + ((getTel1() == null) ? 0 : getTel1().hashCode());
|
result = prime * result + ((getLegalbody() == null) ? 0 : getLegalbody().hashCode());
|
result = prime * result + ((getNlimitmny() == null) ? 0 : getNlimitmny().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", pkCustomer=").append(pkCustomer);
|
sb.append(", code=").append(code);
|
sb.append(", name=").append(name);
|
sb.append(", shortname=").append(shortname);
|
sb.append(", taxpayerid=").append(taxpayerid);
|
sb.append(", khlx=").append(khlx);
|
sb.append(", tel1=").append(tel1);
|
sb.append(", legalbody=").append(legalbody);
|
sb.append(", nlimitmny=").append(nlimitmny);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|