|
|
@@ -498,7 +498,7 @@ public class ReleaseProductByBatch implements Serializable {
|
|
|
* 错误的信息
|
|
|
*/
|
|
|
@Column(name = "rel_errmsg", length = 4000)
|
|
|
- private String errmsg;
|
|
|
+ private String errmsg = "";
|
|
|
|
|
|
/**
|
|
|
* 本批次的最低人民币价格
|
|
|
@@ -1838,4 +1838,130 @@ public class ReleaseProductByBatch implements Serializable {
|
|
|
this.productid = productid;
|
|
|
return this;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "ReleaseProductByBatch{" +
|
|
|
+ "id=" + id +
|
|
|
+ ", relbatchid='" + relbatchid + '\'' +
|
|
|
+ ", batchCode='" + batchCode + '\'' +
|
|
|
+ ", status=" + status +
|
|
|
+ ", statusStr='" + statusStr + '\'' +
|
|
|
+ ", saleMethod='" + saleMethod + '\'' +
|
|
|
+ ", brandNameCn='" + brandNameCn + '\'' +
|
|
|
+ ", brandNameEn='" + brandNameEn + '\'' +
|
|
|
+ ", b2cBrandcn='" + b2cBrandcn + '\'' +
|
|
|
+ ", b2cBranden='" + b2cBranden + '\'' +
|
|
|
+ ", brandId=" + brandId +
|
|
|
+ ", branduuid='" + branduuid + '\'' +
|
|
|
+ ", code='" + code + '\'' +
|
|
|
+ ", b2cCode='" + b2cCode + '\'' +
|
|
|
+ ", componentUuId='" + componentUuId + '\'' +
|
|
|
+ ", unit='" + unit + '\'' +
|
|
|
+ ", original=" + original +
|
|
|
+ ", reserve=" + reserve +
|
|
|
+ ", reserveStr='" + reserveStr + '\'' +
|
|
|
+ ", minBuyQty=" + minBuyQty +
|
|
|
+ ", minBuyQtyStr='" + minBuyQtyStr + '\'' +
|
|
|
+ ", qtyPrice='" + qtyPrice + '\'' +
|
|
|
+ ", prices=" + prices +
|
|
|
+ ", productDate='" + productDate + '\'' +
|
|
|
+ ", createDate=" + createDate +
|
|
|
+ ", minPackage=" + minPackage +
|
|
|
+ ", minPackageStr='" + minPackageStr + '\'' +
|
|
|
+ ", breakUp=" + breakUp +
|
|
|
+ ", breakUpStr='" + breakUpStr + '\'' +
|
|
|
+ ", packaging='" + packaging + '\'' +
|
|
|
+ ", encapsulation='" + encapsulation + '\'' +
|
|
|
+ ", tagstr='" + tagstr + '\'' +
|
|
|
+ ", tag='" + tag + '\'' +
|
|
|
+ ", selfMaxDelivery=" + selfMaxDelivery +
|
|
|
+ ", selfMinDelivery=" + selfMinDelivery +
|
|
|
+ ", selfMaxDeliveryStr='" + selfMaxDeliveryStr + '\'' +
|
|
|
+ ", selfMinDeliveryStr='" + selfMinDeliveryStr + '\'' +
|
|
|
+ ", size='" + size + '\'' +
|
|
|
+ ", color='" + color + '\'' +
|
|
|
+ ", thickCopper='" + thickCopper + '\'' +
|
|
|
+ ", thick='" + thick + '\'' +
|
|
|
+ ", remark='" + remark + '\'' +
|
|
|
+ ", publisherName='" + publisherName + '\'' +
|
|
|
+ ", publisherUu=" + publisherUu +
|
|
|
+ ", publisherTel='" + publisherTel + '\'' +
|
|
|
+ ", currency='" + currency + '\'' +
|
|
|
+ ", sampleqty=" + sampleqty +
|
|
|
+ ", rmbTaxRate=" + rmbTaxRate +
|
|
|
+ ", usdTaxRate=" + usdTaxRate +
|
|
|
+ ", returnInWeek=" + returnInWeek +
|
|
|
+ ", releaseCode=" + releaseCode +
|
|
|
+ ", releaseStatus='" + releaseStatus + '\'' +
|
|
|
+ ", shipArea='" + shipArea + '\'' +
|
|
|
+ ", rmbMinPackPrice=" + rmbMinPackPrice +
|
|
|
+ ", usdMinPackPrice=" + usdMinPackPrice +
|
|
|
+ ", minPackPriceStr='" + minPackPriceStr + '\'' +
|
|
|
+ ", img='" + img + '\'' +
|
|
|
+ ", kindName='" + kindName + '\'' +
|
|
|
+ ", kindUuid=" + kindUuid +
|
|
|
+ ", qty1Str='" + qty1Str + '\'' +
|
|
|
+ ", qty2Str='" + qty2Str + '\'' +
|
|
|
+ ", qty3Str='" + qty3Str + '\'' +
|
|
|
+ ", price1='" + price1 + '\'' +
|
|
|
+ ", price2='" + price2 + '\'' +
|
|
|
+ ", price3='" + price3 + '\'' +
|
|
|
+ ", errmsg='" + errmsg + '\'' +
|
|
|
+ ", minPriceRMB=" + minPriceRMB +
|
|
|
+ ", maxPriceRMB=" + maxPriceRMB +
|
|
|
+ ", minPriceUSD=" + minPriceUSD +
|
|
|
+ ", maxPriceUSD=" + maxPriceUSD +
|
|
|
+ ", storeid='" + storeid + '\'' +
|
|
|
+ ", storeName='" + storeName + '\'' +
|
|
|
+ ", spec='" + spec + '\'' +
|
|
|
+ ", productid=" + productid +
|
|
|
+ ", attach='" + attach + '\'' +
|
|
|
+ ", goodsCount=" + goodsCount +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param batch 上架批次
|
|
|
+ * @return 相同则true,否则false
|
|
|
+ */
|
|
|
+ public Boolean compareSameProductTagInfo(ReleaseProductByBatch batch) {
|
|
|
+ if (batch != null) {
|
|
|
+ return StringUtilB2C.equals(batch.getB2cBranden(), this.b2cBranden) && StringUtilB2C.equals(batch.getB2cCode(), this.b2cCode) && StringUtilB2C.equals(batch.getTag(), this.tag);
|
|
|
+ } else {
|
|
|
+ return Boolean.FALSE;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 六要素比较
|
|
|
+ */
|
|
|
+
|
|
|
+ public Boolean compareSameProductSixEle(ReleaseProductByBatch batch) {
|
|
|
+ if (batch != null) {
|
|
|
+ Boolean result = false;
|
|
|
+ if (StringUtils.isEmpty(batch.getMinBuyQtyStr()) || StringUtils.isEmpty(this.getMinBuyQtyStr()) || (!StringUtilB2C.equals(batch.getMinBuyQtyStr(), this.getMinBuyQtyStr()))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(batch.getProductDate()) || StringUtils.isEmpty(this.getProductDate()) || (!StringUtilB2C.equals(batch.getProductDate(), this.getProductDate()))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(batch.getPackaging()) || StringUtils.isEmpty(this.getPackaging()) || (!StringUtilB2C.equals(batch.getPackaging(), this.getPackaging()))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(batch.getMinPackageStr()) || StringUtils.isEmpty(this.getMinPackageStr()) || (!StringUtilB2C.equals(batch.getMinPackageStr(), this.getMinPackageStr()))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(batch.getSelfMaxDeliveryStr()) || StringUtils.isEmpty(this.getSelfMaxDeliveryStr()) || (!StringUtilB2C.equals(batch.getSelfMaxDeliveryStr(), this.getSelfMaxDeliveryStr()))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(batch.getSelfMinDeliveryStr()) || StringUtils.isEmpty(this.getSelfMinDeliveryStr()) || (!StringUtilB2C.equals(batch.getSelfMinDeliveryStr(), this.getSelfMinDeliveryStr()))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ } else {
|
|
|
+ return Boolean.FALSE;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|