瀏覽代碼

将weight映射字段改为cc_usedstatus

wangyc 7 年之前
父節點
當前提交
f7981f513b
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/java/com/uas/platform/b2c/prod/product/component/modal/ComponentCrawl.java

+ 4 - 4
src/main/java/com/uas/platform/b2c/prod/product/component/modal/ComponentCrawl.java

@@ -98,8 +98,8 @@ public class ComponentCrawl implements Serializable {
 	/**
 	 * 重量(g)
 	 */
-	@Column(name = "cc_weight")
-	private Float weight;
+	@Column(name = "cc_usedstatus")
+	private boolean weight;
 
 	/**
 	 * 单位
@@ -246,11 +246,11 @@ public class ComponentCrawl implements Serializable {
 		this.b2cAttach = b2cAttach;
 	}
 
-	public Float getWeight() {
+	public boolean getWeight() {
 		return weight;
 	}
 
-	public void setWeight(Float weight) {
+	public void setWeight(boolean weight) {
 		this.weight = weight;
 	}