|
@ -0,0 +1,130 @@
|
|
|
package com.yihu.wlyy.entity.dict;
|
|
|
|
|
|
import com.yihu.wlyy.entity.IdEntity;
|
|
|
|
|
|
import javax.persistence.Basic;
|
|
|
import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
/**
|
|
|
* 快递价目表
|
|
|
*/
|
|
|
@Entity
|
|
|
@Table(name = "dm_expressage_price", schema = "wlyy", catalog = "")
|
|
|
public class DmExpressagePriceEntity extends IdEntity {
|
|
|
private String code;
|
|
|
private String startAddressName;
|
|
|
private String endAddressName;
|
|
|
private Integer firstWeight;
|
|
|
private Integer firstWeightPrice;
|
|
|
private Integer continueWeight;
|
|
|
private Integer continueWeightPrice;
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "code")
|
|
|
public String getCode() {
|
|
|
return code;
|
|
|
}
|
|
|
|
|
|
public void setCode(String code) {
|
|
|
this.code = code;
|
|
|
}
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "start_address_name")
|
|
|
public String getStartAddressName() {
|
|
|
return startAddressName;
|
|
|
}
|
|
|
|
|
|
public void setStartAddressName(String startAddressName) {
|
|
|
this.startAddressName = startAddressName;
|
|
|
}
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "end_address_name")
|
|
|
public String getEndAddressName() {
|
|
|
return endAddressName;
|
|
|
}
|
|
|
|
|
|
public void setEndAddressName(String endAddressName) {
|
|
|
this.endAddressName = endAddressName;
|
|
|
}
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "first_weight")
|
|
|
public Integer getFirstWeight() {
|
|
|
return firstWeight;
|
|
|
}
|
|
|
|
|
|
public void setFirstWeight(Integer firstWeight) {
|
|
|
this.firstWeight = firstWeight;
|
|
|
}
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "first_weight_price")
|
|
|
public Integer getFirstWeightPrice() {
|
|
|
return firstWeightPrice;
|
|
|
}
|
|
|
|
|
|
public void setFirstWeightPrice(Integer firstWeightPrice) {
|
|
|
this.firstWeightPrice = firstWeightPrice;
|
|
|
}
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "continue_weight")
|
|
|
public Integer getContinueWeight() {
|
|
|
return continueWeight;
|
|
|
}
|
|
|
|
|
|
public void setContinueWeight(Integer continueWeight) {
|
|
|
this.continueWeight = continueWeight;
|
|
|
}
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "continue_weight_price")
|
|
|
public Integer getContinueWeightPrice() {
|
|
|
return continueWeightPrice;
|
|
|
}
|
|
|
|
|
|
public void setContinueWeightPrice(Integer continueWeightPrice) {
|
|
|
this.continueWeightPrice = continueWeightPrice;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public boolean equals(Object o) {
|
|
|
if (this == o) return true;
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
|
|
DmExpressagePriceEntity that = (DmExpressagePriceEntity) o;
|
|
|
|
|
|
if (id != null ? !id.equals(that.id) : that.id != null) return false;
|
|
|
if (code != null ? !code.equals(that.code) : that.code != null) return false;
|
|
|
if (startAddressName != null ? !startAddressName.equals(that.startAddressName) : that.startAddressName != null)
|
|
|
return false;
|
|
|
if (endAddressName != null ? !endAddressName.equals(that.endAddressName) : that.endAddressName != null)
|
|
|
return false;
|
|
|
if (firstWeight != null ? !firstWeight.equals(that.firstWeight) : that.firstWeight != null) return false;
|
|
|
if (firstWeightPrice != null ? !firstWeightPrice.equals(that.firstWeightPrice) : that.firstWeightPrice != null)
|
|
|
return false;
|
|
|
if (continueWeight != null ? !continueWeight.equals(that.continueWeight) : that.continueWeight != null)
|
|
|
return false;
|
|
|
if (continueWeightPrice != null ? !continueWeightPrice.equals(that.continueWeightPrice) : that.continueWeightPrice != null)
|
|
|
return false;
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int hashCode() {
|
|
|
int result = id != null ? id.hashCode() : 0;
|
|
|
result = 31 * result + (code != null ? code.hashCode() : 0);
|
|
|
result = 31 * result + (startAddressName != null ? startAddressName.hashCode() : 0);
|
|
|
result = 31 * result + (endAddressName != null ? endAddressName.hashCode() : 0);
|
|
|
result = 31 * result + (firstWeight != null ? firstWeight.hashCode() : 0);
|
|
|
result = 31 * result + (firstWeightPrice != null ? firstWeightPrice.hashCode() : 0);
|
|
|
result = 31 * result + (continueWeight != null ? continueWeight.hashCode() : 0);
|
|
|
result = 31 * result + (continueWeightPrice != null ? continueWeightPrice.hashCode() : 0);
|
|
|
return result;
|
|
|
}
|
|
|
}
|