소스 검색

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

yujia 7 년 전
부모
커밋
f0f8eba994
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/main/java/com/uas/platform/b2c/prod/commodity/model/Goods.java

+ 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();