Browse Source

【上架模块】--只有一个分段时设置开始阶梯为最小起订量。

yujia 8 years ago
parent
commit
15585d0a1f

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/ReleaseProductByBatchServiceImpl.java

@@ -371,7 +371,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 					} else {
 					} else {
 						// 如果未填分段价格,默认为最小包装量价格
 						// 如果未填分段价格,默认为最小包装量价格
 						GoodsQtyPrice qtyPrice = new GoodsQtyPrice();
 						GoodsQtyPrice qtyPrice = new GoodsQtyPrice();
-						qtyPrice.setStart(DoubleConstant.minReserve);
+						qtyPrice.setStart(releaseProductByBatch.getMinBuyQty());
 						if(Currency.USD.equals(releaseProductByBatch.getCurrency())) {
 						if(Currency.USD.equals(releaseProductByBatch.getCurrency())) {
 							Double usdMinPackPrice = releaseProductByBatch.getUsdMinPackPrice();
 							Double usdMinPackPrice = releaseProductByBatch.getUsdMinPackPrice();
 							if(usdMinPackPrice != null) {
 							if(usdMinPackPrice != null) {