GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
yn-bftl-byx
/
common
Browse code
ErpInventoryInfo
master
1 parent
780a475
commit
de0c4d81f6c6f1c6ee40169601b78cd501983687
Jing
authored
on 17 Oct
Patch
Showing
1 changed file
src/main/java/com/yn/bftl/common/modules/good/entity/ErpInventoryInfo.java
Ignore Space
Show notes
View
src/main/java/com/yn/bftl/common/modules/good/entity/ErpInventoryInfo.java
package com.yn.bftl.common.modules.good.entity; import com.google.common.base.MoreObjects; import com.yn.bftl.common.common.entity.AuditableModel; import com.yn.bftl.common.modules.customer.entity.Customer; import com.yn.bftl.common.modules.meta.entity.MetaFile; import org.hibernate.annotations.Type; import javax.persistence.*; import java.io.Serializable; import java.math.BigDecimal; import java.util.Objects; @Entity @Cacheable(false) @Table(name = "GOOD_ERP_INVENTORY_INFO") @Inheritance(strategy = InheritanceType.SINGLE_TABLE) public class ErpInventoryInfo extends AuditableModel implements Serializable { @Id @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "GOOD_ERP_INVENTORY_INFO_SEQ" ) @SequenceGenerator( name = "GOOD_ERP_INVENTORY_INFO_SEQ", sequenceName = "GOOD_ERP_INVENTORY_INFO_SEQ", allocationSize = 1 ) private Long id; //商品编码 private String cinvcode; //存货名称 private String cinvname; //商品名称 private String ccurrencyname; //规格型号 private String cinvstd; //涂装颜色 private String paintingcolor; //辐条辐帽 private String spoke; //主键ID private Long iId = 0L; //是否已同步创建商品 private Boolean isSync = Boolean.FALSE; //商品大类编码 private String cinvccode; //商品大类名称 private String cinvcname; //计量单位编码 private String ccomunitcode; //计量单位名称 private String ccomunitname; //erp账套号 private String erpCode; private String attrs; public ErpInventoryInfo() {} public ErpInventoryInfo( String cinvcode, String cinvname, String ccurrencyname, String cinvccode, String cinvcname, String ccomunitcode, String ccomunitname) { this.cinvcode = cinvcode; this.cinvname = cinvname; this.ccurrencyname = ccurrencyname; this.cinvccode = cinvccode; this.cinvcname = cinvcname; this.ccomunitcode = ccomunitcode; this.ccomunitname = ccomunitname; } @Override public Long getId() { return id; } @Override public void setId(Long id) { this.id = id; } public String getCinvcode() { return cinvcode; } public void setCinvcode(String cinvcode) { this.cinvcode = cinvcode; } public String getCinvname() { return cinvname; } public void setCinvname(String cinvname) { this.cinvname = cinvname; } public String getCcurrencyname() { return ccurrencyname; } public void setCcurrencyname(String ccurrencyname) { this.ccurrencyname = ccurrencyname; } public String getCinvstd() { return cinvstd; } public void setCinvstd(String cinvstd) { this.cinvstd = cinvstd; } public String getPaintingcolor() { return paintingcolor; } public void setPaintingcolor(String paintingcolor) { this.paintingcolor = paintingcolor; } public String getSpoke() { return spoke; } public void setSpoke(String spoke) { this.spoke = spoke; } public Long getiId() { return iId == null ? 0L : iId; } public void setiId(Long iId) { this.iId = iId; } public Boolean getIsSync() { return isSync == null ? Boolean.FALSE : isSync; } public void setIsSync(Boolean isSync) { this.isSync = isSync; } public String getCinvccode() { return cinvccode; } public void setCinvccode(String cinvccode) { this.cinvccode = cinvccode; } public String getCinvcname() { return cinvcname; } public void setCinvcname(String cinvcname) { this.cinvcname = cinvcname; } public String getCcomunitcode() { return ccomunitcode; } public void setCcomunitcode(String ccomunitcode) { this.ccomunitcode = ccomunitcode; } public String getCcomunitname() { return ccomunitname; } public void setCcomunitname(String ccomunitname) { this.ccomunitname = ccomunitname; } public String getErpCode() { return erpCode; } public void setErpCode(String erpCode) { this.erpCode = erpCode; } public String getAttrs() { return attrs; } public void setAttrs(String attrs) { this.attrs = attrs; } @Override public boolean equals(Object obj) { if (obj == null) return false; if (this == obj) return true; if (!(obj instanceof ErpInventoryInfo)) return false; final ErpInventoryInfo other = (ErpInventoryInfo) obj; if (this.getId() != null || other.getId() != null) { return Objects.equals(this.getId(), other.getId()); } return false; } @Override public int hashCode() { return 31; } @Override public String toString() { return MoreObjects.toStringHelper(this) .add("id", getId()) .add("cinvcode", getCinvcode()) .add("cinvname", getCinvname()) .add("ccurrencyname", getCcurrencyname()) .add("cinvstd", getCinvstd()) .add("paintingcolor", getPaintingcolor()) .add("spoke", getSpoke()) .add("iId", getiId()) .add("isSync", getIsSync()) .add("cinvccode", getCinvccode()) .add("cinvcname", getCinvcname()) .add("ccomunitcode", getCcomunitcode()) .add("erpCode", getErpCode()) .omitNullValues() .toString(); } }
package com.yn.bftl.common.modules.good.entity; import com.google.common.base.MoreObjects; import com.yn.bftl.common.common.entity.AuditableModel; import com.yn.bftl.common.modules.customer.entity.Customer; import com.yn.bftl.common.modules.meta.entity.MetaFile; import org.hibernate.annotations.Type; import javax.persistence.*; import java.io.Serializable; import java.math.BigDecimal; import java.util.Objects; @Entity @Cacheable(false) @Table(name = "GOOD_ERP_INVENTORY_INFO") @Inheritance(strategy = InheritanceType.SINGLE_TABLE) public class ErpInventoryInfo extends AuditableModel implements Serializable { @Id @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "GOOD_ERP_INVENTORY_INFO_SEQ" ) @SequenceGenerator( name = "GOOD_ERP_INVENTORY_INFO_SEQ", sequenceName = "GOOD_ERP_INVENTORY_INFO_SEQ", allocationSize = 1 ) private Long id; //商品编码 private String cinvcode; //存货名称 private String cinvname; //商品名称 private String ccurrencyname; //规格型号 private String cinvstd; //涂装颜色 private String paintingcolor; //辐条辐帽 private String spoke; //主键ID private Long iId = 0L; private String attrs; public ErpInventoryInfo() { } public ErpInventoryInfo(String cinvcode, String cinvname, String ccurrencyname) { this.cinvcode = cinvcode; this.cinvname = cinvname; this.ccurrencyname = ccurrencyname; } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public String getCinvcode() { return this.cinvcode; } public void setCinvcode(String cinvcode) { this.cinvcode = cinvcode; } public String getCinvname() { return this.cinvname; } public void setCinvname(String cinvname) { this.cinvname = cinvname; } public String getCcurrencyname() { return this.ccurrencyname; } public void setCcurrencyname(String ccurrencyname) { this.ccurrencyname = ccurrencyname; } public String getCinvstd() { return this.cinvstd; } public void setCinvstd(String cinvstd) { this.cinvstd = cinvstd; } public String getPaintingcolor() { return this.paintingcolor; } public void setPaintingcolor(String paintingcolor) { this.paintingcolor = paintingcolor; } public String getSpoke() { return this.spoke; } public void setSpoke(String spoke) { this.spoke = spoke; } public Long getiId() { return this.iId == null ? 0L : this.iId; } public void setiId(Long iId) { this.iId = iId; } public String getAttrs() { return this.attrs; } public void setAttrs(String attrs) { this.attrs = attrs; } public boolean equals(Object obj) { if (obj == null) { return false; } else if (this == obj) { return true; } else if (!(obj instanceof ErpInventoryInfo)) { return false; } else { ErpInventoryInfo other = (ErpInventoryInfo)obj; return this.getId() == null && other.getId() == null ? false : Objects.equals(this.getId(), other.getId()); } } public int hashCode() { return 31; } public String toString() { return MoreObjects.toStringHelper(this).add("id", this.getId()).add("cinvcode", this.getCinvcode()).add("cinvname", this.getCinvname()).add("ccurrencyname", this.getCcurrencyname()).add("cinvstd", this.getCinvstd()).add("paintingcolor", this.getPaintingcolor()).add("spoke", this.getSpoke()).add("iId", this.getiId()).omitNullValues().toString(); } }
Show line notes below