|
|
@@ -0,0 +1,46 @@
|
|
|
+package com.uas.platform.b2c.prod.product.component.modal;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+public class ComponentGoodsId implements Serializable{
|
|
|
+
|
|
|
+ private Long cmpId;
|
|
|
+ private Long goId;
|
|
|
+
|
|
|
+ public Long getCmpId() {
|
|
|
+ return cmpId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCmpId(Long cmpId) {
|
|
|
+ this.cmpId = cmpId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getGoId() {
|
|
|
+ return goId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGoId(Long goId) {
|
|
|
+ this.goId = goId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ComponentGoodsId() {
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object o) {
|
|
|
+ if (this == o) return true;
|
|
|
+ if (o == null || getClass() != o.getClass()) return false;
|
|
|
+
|
|
|
+ ComponentGoodsId that = (ComponentGoodsId) o;
|
|
|
+
|
|
|
+ if (cmpId != null ? !cmpId.equals(that.cmpId) : that.cmpId != null) return false;
|
|
|
+ return goId != null ? goId.equals(that.goId) : that.goId == null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ int result = cmpId != null ? cmpId.hashCode() : 0;
|
|
|
+ result = 31 * result + (goId != null ? goId.hashCode() : 0);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+}
|