|
@@ -8,6 +8,7 @@ import com.uas.platform.b2c.core.utils.RegexConstant;
|
|
|
import com.uas.platform.b2c.core.utils.StringUtilB2C;
|
|
import com.uas.platform.b2c.core.utils.StringUtilB2C;
|
|
|
import com.uas.platform.b2c.prod.commodity.constant.DoubleConstant;
|
|
import com.uas.platform.b2c.prod.commodity.constant.DoubleConstant;
|
|
|
import com.uas.platform.b2c.prod.commodity.constant.ErrorInfoConstant;
|
|
import com.uas.platform.b2c.prod.commodity.constant.ErrorInfoConstant;
|
|
|
|
|
+import com.uas.platform.b2c.prod.commodity.constant.UploadConstant;
|
|
|
import com.uas.platform.b2c.prod.commodity.type.ReleaseConstant;
|
|
import com.uas.platform.b2c.prod.commodity.type.ReleaseConstant;
|
|
|
import com.uas.platform.b2c.trade.order.StringConstant.Currency;
|
|
import com.uas.platform.b2c.trade.order.StringConstant.Currency;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
@@ -32,7 +33,7 @@ import java.util.regex.Pattern;
|
|
|
* @time 创建时间:2016年9月24日
|
|
* @time 创建时间:2016年9月24日
|
|
|
*/
|
|
*/
|
|
|
@Entity
|
|
@Entity
|
|
|
-@Table(name = "trade$releasebybatch")
|
|
|
|
|
|
|
+ @Table(name = "trade$releasebybatch")
|
|
|
public class ReleaseProductByBatch implements Serializable {
|
|
public class ReleaseProductByBatch implements Serializable {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -511,6 +512,12 @@ public class ReleaseProductByBatch implements Serializable {
|
|
|
@Column(name = "rel_storename")
|
|
@Column(name = "rel_storename")
|
|
|
private String storeName;
|
|
private String storeName;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 规格信息
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "rel_spec")
|
|
|
|
|
+ private String spec;
|
|
|
|
|
+
|
|
|
// private Short repeat;
|
|
// private Short repeat;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -667,6 +674,21 @@ public class ReleaseProductByBatch implements Serializable {
|
|
|
setPackaging(packagingData);
|
|
setPackaging(packagingData);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 交期赋值逻辑较为复杂,在调用类进行赋值
|
|
|
|
|
+ * @param value
|
|
|
|
|
+ */
|
|
|
|
|
+ public void setSpecByExcel(Object value) {
|
|
|
|
|
+ if (!StringUtils.isEmpty(value)) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String str = com.uas.platform.b2c.fa.payment.utils.StringUtils.cutOutString(value.toString(), UploadConstant.SPEC_MAX_BYTE);
|
|
|
|
|
+ setSpec(str);
|
|
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
|
|
+ throw new RuntimeException(e + "指定字符集不支持");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 交期赋值逻辑较为复杂,在调用类进行赋值
|
|
* 交期赋值逻辑较为复杂,在调用类进行赋值
|
|
|
* @param minValue
|
|
* @param minValue
|
|
@@ -1648,4 +1670,13 @@ public class ReleaseProductByBatch implements Serializable {
|
|
|
public void setSaleMethod(String saleMethod) {
|
|
public void setSaleMethod(String saleMethod) {
|
|
|
this.saleMethod = saleMethod;
|
|
this.saleMethod = saleMethod;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public String getSpec() {
|
|
|
|
|
+ return spec;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ReleaseProductByBatch setSpec(String spec) {
|
|
|
|
|
+ this.spec = spec;
|
|
|
|
|
+ return this;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|