package com.glacier.frame.entity.purchase; import java.math.BigDecimal; import java.util.Date; public class PurchaseRequisitionDetail { private String purReqDetId; private String purReqId; private String goodsId; private String goodsCode; private String goodsName; private String goodsModel; private String goodsUnit; private String brand; private String placeOfOrigin; private String inquiry; private BigDecimal price; private Integer quantity; private BigDecimal money; private Date deadline; private Integer notOrderNum; private Integer alrOrderNum; private String remark; public String getPurReqDetId() { return purReqDetId; } public void setPurReqDetId(String purReqDetId) { this.purReqDetId = purReqDetId; } public String getPurReqId() { return purReqId; } public void setPurReqId(String purReqId) { this.purReqId = purReqId; } public String getGoodsId() { return goodsId; } public void setGoodsId(String goodsId) { this.goodsId = goodsId; } public String getGoodsCode() { return goodsCode; } public void setGoodsCode(String goodsCode) { this.goodsCode = goodsCode; } public String getGoodsName() { return goodsName; } public void setGoodsName(String goodsName) { this.goodsName = goodsName; } public String getGoodsModel() { return goodsModel; } public void setGoodsModel(String goodsModel) { this.goodsModel = goodsModel; } public String getGoodsUnit() { return goodsUnit; } public void setGoodsUnit(String goodsUnit) { this.goodsUnit = goodsUnit; } public String getBrand() { return brand; } public void setBrand(String brand) { this.brand = brand; } public String getPlaceOfOrigin() { return placeOfOrigin; } public void setPlaceOfOrigin(String placeOfOrigin) { this.placeOfOrigin = placeOfOrigin; } public String getInquiry() { return inquiry; } public void setInquiry(String inquiry) { this.inquiry = inquiry; } public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } public Integer getQuantity() { return quantity; } public void setQuantity(Integer quantity) { this.quantity = quantity; } public BigDecimal getMoney() { return money; } public void setMoney(BigDecimal money) { this.money = money; } public Date getDeadline() { return deadline; } public void setDeadline(Date deadline) { this.deadline = deadline; } public Integer getNotOrderNum() { return notOrderNum; } public void setNotOrderNum(Integer notOrderNum) { this.notOrderNum = notOrderNum; } public Integer getAlrOrderNum() { return alrOrderNum; } public void setAlrOrderNum(Integer alrOrderNum) { this.alrOrderNum = alrOrderNum; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } PurchaseRequisitionDetail other = (PurchaseRequisitionDetail) that; return (this.getPurReqDetId() == null ? other.getPurReqDetId() == null : this.getPurReqDetId().equals(other.getPurReqDetId())) && (this.getPurReqId() == null ? other.getPurReqId() == null : this.getPurReqId().equals(other.getPurReqId())) && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId())) && (this.getGoodsCode() == null ? other.getGoodsCode() == null : this.getGoodsCode().equals(other.getGoodsCode())) && (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName())) && (this.getGoodsModel() == null ? other.getGoodsModel() == null : this.getGoodsModel().equals(other.getGoodsModel())) && (this.getGoodsUnit() == null ? other.getGoodsUnit() == null : this.getGoodsUnit().equals(other.getGoodsUnit())) && (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand())) && (this.getPlaceOfOrigin() == null ? other.getPlaceOfOrigin() == null : this.getPlaceOfOrigin().equals(other.getPlaceOfOrigin())) && (this.getInquiry() == null ? other.getInquiry() == null : this.getInquiry().equals(other.getInquiry())) && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity())) && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney())) && (this.getDeadline() == null ? other.getDeadline() == null : this.getDeadline().equals(other.getDeadline())) && (this.getNotOrderNum() == null ? other.getNotOrderNum() == null : this.getNotOrderNum().equals(other.getNotOrderNum())) && (this.getAlrOrderNum() == null ? other.getAlrOrderNum() == null : this.getAlrOrderNum().equals(other.getAlrOrderNum())) && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getPurReqDetId() == null) ? 0 : getPurReqDetId().hashCode()); result = prime * result + ((getPurReqId() == null) ? 0 : getPurReqId().hashCode()); result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode()); result = prime * result + ((getGoodsCode() == null) ? 0 : getGoodsCode().hashCode()); result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode()); result = prime * result + ((getGoodsModel() == null) ? 0 : getGoodsModel().hashCode()); result = prime * result + ((getGoodsUnit() == null) ? 0 : getGoodsUnit().hashCode()); result = prime * result + ((getBrand() == null) ? 0 : getBrand().hashCode()); result = prime * result + ((getPlaceOfOrigin() == null) ? 0 : getPlaceOfOrigin().hashCode()); result = prime * result + ((getInquiry() == null) ? 0 : getInquiry().hashCode()); result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode()); result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode()); result = prime * result + ((getDeadline() == null) ? 0 : getDeadline().hashCode()); result = prime * result + ((getNotOrderNum() == null) ? 0 : getNotOrderNum().hashCode()); result = prime * result + ((getAlrOrderNum() == null) ? 0 : getAlrOrderNum().hashCode()); result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode()); return result; } }