Browse Source

保存客户物料在ERP中的ID

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1266 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 10 years ago
parent
commit
e71fe28488

+ 10 - 0
src/main/java/com/uas/platform/b2b/erp/model/Prod.java

@@ -11,6 +11,7 @@ import com.uas.platform.b2b.support.SystemSession;
  */
  */
 public class Prod {
 public class Prod {
 
 
+	private Long pr_id;// 买方ERP物料ID
 	private String pr_code;
 	private String pr_code;
 	private String pr_detail;
 	private String pr_detail;
 	private String pr_spec;
 	private String pr_spec;
@@ -84,6 +85,14 @@ public class Prod {
 		this.pr_ltinstock = pr_ltinstock;
 		this.pr_ltinstock = pr_ltinstock;
 	}
 	}
 
 
+	public Long getPr_id() {
+		return pr_id;
+	}
+
+	public void setPr_id(Long pr_id) {
+		this.pr_id = pr_id;
+	}
+
 	/**
 	/**
 	 * 转为平台的产品
 	 * 转为平台的产品
 	 * 
 	 * 
@@ -101,6 +110,7 @@ public class Prod {
 		product.setMinOrder(this.pr_zxdhl);
 		product.setMinOrder(this.pr_zxdhl);
 		product.setLeadtime(this.pr_leadtime);
 		product.setLeadtime(this.pr_leadtime);
 		product.setLtinstock(this.pr_ltinstock);
 		product.setLtinstock(this.pr_ltinstock);
+		product.setSourceId(this.pr_id);
 		return product;
 		return product;
 	}
 	}
 
 

+ 14 - 0
src/main/java/com/uas/platform/b2b/model/Product.java

@@ -213,6 +213,12 @@ public class Product {
 	 */
 	 */
 	@Column(name = "pr_properties")
 	@Column(name = "pr_properties")
 	private String properties;
 	private String properties;
+	
+	/**
+	 * 买方ERP物料ID
+	 */
+	@Column(name = "pr_sourceid")
+	private Long sourceId;
 
 
 	public Long getId() {
 	public Long getId() {
 		return id;
 		return id;
@@ -454,6 +460,14 @@ public class Product {
 		this.ltinstock = ltinstock;
 		this.ltinstock = ltinstock;
 	}
 	}
 
 
+	public Long getSourceId() {
+		return sourceId;
+	}
+
+	public void setSourceId(Long sourceId) {
+		this.sourceId = sourceId;
+	}
+
 	@Override
 	@Override
 	public String toString() {
 	public String toString() {
 		return "编号:" + getCode() + ",标题:" + getTitle() + ",规格型号:" + getSpec();
 		return "编号:" + getCode() + ",标题:" + getTitle() + ",规格型号:" + getSpec();