Przeglądaj źródła

历史库存添加附件信息字段

yujia 7 lat temu
rodzic
commit
6d1dc89201

+ 15 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/model/GoodsHistory.java

@@ -415,6 +415,12 @@ public class GoodsHistory {
 	@Column(name = "go_spec", length = 4000)
 	private String spec;
 
+	/**
+	 * 器件的附件URL
+	 */
+	@Column(name = "cmp_attach")
+	private String attach;
+
 	/**
 	 * 分段价格
 	 */
@@ -1186,4 +1192,13 @@ public class GoodsHistory {
 		this.spec = spec;
 		return this;
 	}
+
+	public String getAttach() {
+		return attach;
+	}
+
+	public GoodsHistory setAttach(String attach) {
+		this.attach = attach;
+		return this;
+	}
 }

+ 15 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/model/ReleaseProductByBatch.java

@@ -542,6 +542,12 @@ public class ReleaseProductByBatch implements Serializable {
 	@Column(name = "rel_spec")
 	private String spec;
 
+	/**
+	 * 规格书信息
+	 */
+	@Column(name = "rel_attach")
+	private String attach;
+
 //	private Short repeat;
 
 	@Override
@@ -1793,4 +1799,13 @@ public class ReleaseProductByBatch implements Serializable {
 	public void setThick(String thick) {
 		this.thick = thick;
 	}
+
+	public String getAttach() {
+		return attach;
+	}
+
+	public ReleaseProductByBatch setAttach(String attach) {
+		this.attach = attach;
+		return this;
+	}
 }

+ 2 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/ProductServiceImpl.java

@@ -1966,8 +1966,10 @@ public class ProductServiceImpl implements ProductService {
                                     return resultMap;
                                 } else {
                                     persistProduct.setPbranden(brand);
+                                    persistProduct.setBrand(brand);
                                     persistProduct.setPbrand(brand);
                                     persistProduct.setPcmpcode(code);
+                                    persistProduct.setCmpCode(code);
                                     Product product1 = productDao.save(persistProduct);
                                     goodsService.updateGoodsByProduct(product1);
                                     return ResultMap.success(product1);