|
|
@@ -1929,10 +1929,10 @@ public class Goods implements Serializable {
|
|
|
* @return
|
|
|
*/
|
|
|
public Goods updateGoodsByReleaseProductByBatch(ReleaseProductByBatch releaseProductByBatch, TradeDeliveryDelayTime deliveryDelayTime, Integer ignoreImport) {
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isNotEmpty(this.tag)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isNotEmpty(this.tag)) {
|
|
|
this.tag = StringUtils.isEmpty(releaseProductByBatch.getTag()) ? "类型1" : releaseProductByBatch.getTag();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isNotEmpty(this.unit)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isNotEmpty(this.unit)) {
|
|
|
this.unit = StringUtils.isEmpty(releaseProductByBatch.getUnit()) ? StringConstant.UNIT : releaseProductByBatch.getUnit();
|
|
|
}
|
|
|
this.brandNameCn = releaseProductByBatch.getB2cBrandcn();
|
|
|
@@ -1942,18 +1942,18 @@ public class Goods implements Serializable {
|
|
|
this.code = releaseProductByBatch.getB2cCode();
|
|
|
this.uuid = releaseProductByBatch.getComponentUuId();
|
|
|
this.img = releaseProductByBatch.getImg();
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isNotEmpty(this.kindNameCn) || releaseProductByBatch.getKindUuid() != null) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isNotEmpty(this.kindNameCn) || releaseProductByBatch.getKindUuid() != null) {
|
|
|
this.kindNameCn = releaseProductByBatch.getKindName();
|
|
|
this.kindUuid = releaseProductByBatch.getKindUuid();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || this.minBuyQty == null) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || this.minBuyQty == null) {
|
|
|
this.minBuyQty = releaseProductByBatch.getMinBuyQty();
|
|
|
this.minPackQty = releaseProductByBatch.getMinPackage();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isEmpty(this.produceDate)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isEmpty(this.produceDate)) {
|
|
|
this.produceDate = StringUtils.isEmpty(releaseProductByBatch.getProductDate()) ? StringConstant.DEFAULT_PRODUCEDATE : releaseProductByBatch.getProductDate();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isEmpty(this.qtyPrice)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isEmpty(this.qtyPrice)) {
|
|
|
this.qtyPrice = releaseProductByBatch.getQtyPrice();
|
|
|
this.rmbTaxRate = releaseProductByBatch.getRmbTaxRate();
|
|
|
this.usdTaxRate = releaseProductByBatch.getUsdTaxRate();
|
|
|
@@ -1962,26 +1962,26 @@ public class Goods implements Serializable {
|
|
|
this.maxPriceUSD = releaseProductByBatch.getMaxPriceUSD();
|
|
|
this.minPriceUSD = releaseProductByBatch.getMinPriceUSD();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isEmpty(this.remark)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isEmpty(this.remark)) {
|
|
|
this.remark = releaseProductByBatch.getRemark();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || NumberUtil.compare(this.reserve, DoubleConstant.zero) < 1) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || NumberUtil.compare(this.reserve, DoubleConstant.zero) < 1) {
|
|
|
this.reserve = releaseProductByBatch.getReserve();
|
|
|
this.lastReserve = releaseProductByBatch.getReserve();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isEmpty(this.packaging)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isEmpty(this.packaging)) {
|
|
|
this.packaging = releaseProductByBatch.getPackaging();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isEmpty(this.encapsulation)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isEmpty(this.encapsulation)) {
|
|
|
this.encapsulation = releaseProductByBatch.getEncapsulation();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || org.apache.commons.lang.StringUtils.isEmpty(this.spec)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || org.apache.commons.lang.StringUtils.isEmpty(this.spec)) {
|
|
|
this.spec = releaseProductByBatch.getSpec();
|
|
|
}
|
|
|
this.returnInWeek = releaseProductByBatch.getReturnInWeek();
|
|
|
this.sampleQty = releaseProductByBatch.getSampleqty();
|
|
|
this.updateDate = releaseProductByBatch.getCreateDate();
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || releaseProductByBatch.getSelfMinDelivery() != null) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || releaseProductByBatch.getSelfMinDelivery() != null) {
|
|
|
this.maxDelivery = releaseProductByBatch.getSelfMaxDelivery();
|
|
|
this.minDelivery = releaseProductByBatch.getSelfMinDelivery();
|
|
|
if (this.minDelivery == null) {
|
|
|
@@ -2000,11 +2000,11 @@ public class Goods implements Serializable {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || StringUtils.isEmpty(this.breakUp)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || StringUtils.isEmpty(this.breakUp)) {
|
|
|
this.breakUp = releaseProductByBatch.getBreakUp();
|
|
|
this.perQty = releaseProductByBatch.getBreakUp() ? 1 : releaseProductByBatch.getMinPackage();
|
|
|
}
|
|
|
- if (IntegerConstant.NO_INT == ignoreImport || StringUtils.isEmpty(this.reserve)) {
|
|
|
+ if (IntegerConstant.NO_INT.equals(ignoreImport) || StringUtils.isEmpty(this.reserve)) {
|
|
|
this.reserve = releaseProductByBatch.getReserve();
|
|
|
}
|
|
|
this.batchid = releaseProductByBatch.getRelbatchid();
|