Browse Source

bug fixes

PLF 5 years ago
parent
commit
01234c4dd8

+ 2 - 0
src/main/java/com/caimei/service/products/impl/ShoppingServiceImpl.java

@@ -51,6 +51,8 @@ public class ShoppingServiceImpl implements ShoppingService {
                                 }
                                 }
                             }
                             }
                             products.setProductLadderPrices(ladderPriceList);
                             products.setProductLadderPrices(ladderPriceList);
+                            products.setMinBuyNumber(ladderPriceList.get(0).getBuyNum());
+                            products.setRetailPrice(ladderPriceList.get(0).getBuyPrice());
                         }
                         }
                         totalPrice += (products.getRetailPrice() * products.getProductCount());
                         totalPrice += (products.getRetailPrice() * products.getProductCount());
                     }
                     }