Просмотр исходного кода

处理批量导入选择覆盖,库存没有修改的问题。

yujia 7 лет назад
Родитель
Сommit
f0f8eba994

+ 3 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/model/Goods.java

@@ -1928,6 +1928,9 @@ public class Goods implements Serializable {
 			this.breakUp = releaseProductByBatch.getBreakUp();
 			this.perQty = releaseProductByBatch.getBreakUp() ? 1 : releaseProductByBatch.getMinPackage();
 		}
+		if (IntegerConstant.NO_INT == ignoreImport || StringUtils.isEmpty(this.reserve)) {
+			this.reserve = releaseProductByBatch.getReserve();
+		}
 		this.batchid = releaseProductByBatch.getRelbatchid();
 		this.storeid = releaseProductByBatch.getStoreid();
 		this.storeName = releaseProductByBatch.getStoreName();