|
|
@@ -1063,4 +1063,33 @@ public class Product {
|
|
|
// 产品导入默认可销售
|
|
|
this.isSale = ((short) 1);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将 V_ProductPrivate 赋值给Product
|
|
|
+ * @param productPrivate V_ProductPrivate
|
|
|
+ */
|
|
|
+ public Product setByPrivate(V_ProductPrivate productPrivate) {
|
|
|
+ this.packaging = productPrivate.getPackaging();
|
|
|
+ this.minPackQty = productPrivate.getMinPackQty();
|
|
|
+ this.cmpImg = productPrivate.getCmpImg();
|
|
|
+ this.enUU = SystemSession.getUser().getEnterprise().getUu();
|
|
|
+ this.brand = productPrivate.getBrand();
|
|
|
+ this.cmpCode = productPrivate.getCmpCode();
|
|
|
+ this.cmpUuId = productPrivate.getCmpUuId();
|
|
|
+ this.kind = productPrivate.getKind();
|
|
|
+ this.kindid = productPrivate.getKindid();
|
|
|
+ this.pcmpcode = productPrivate.getPcmpcode();
|
|
|
+ this.pbrand = productPrivate.getPbrand();
|
|
|
+ this.pbranden = productPrivate.getPbranden();
|
|
|
+ this.pbrandid = productPrivate.getPbrandid();
|
|
|
+ this.pbranduuid = productPrivate.getPbranduuid();
|
|
|
+ this.standard = productPrivate.getStandard();
|
|
|
+ this.createTime = new Date(System.currentTimeMillis());
|
|
|
+ this.produceDate = productPrivate.getProduceDate();
|
|
|
+ this.spec = productPrivate.getSpec();
|
|
|
+ this.prodName = productPrivate.getProdName();
|
|
|
+ // 产品导入默认可销售
|
|
|
+ this.isSale = ((short) 1);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
}
|