Explorar o código

复购价商品最大购买量

chao %!s(int64=3) %!d(string=hai) anos
pai
achega
04178740ac

+ 1 - 0
src/main/java/com/caimei365/commodity/components/PriceUtilService.java

@@ -122,6 +122,7 @@ public class PriceUtilService {
                         LadderPriceVo lowerBuyNum = priceMapper.findMaxLadderPrice(price.getProductId());
                         if (null != lowerPrice) {
                             price.setPrice(lowerPrice.getBuyPrice());
+                            price.setMaxBuyNumber(lowerPrice.getBuyNum());
                             if (null != lowerBuyNum){
                                 price.setMinBuyNumber(lowerBuyNum.getBuyNum());
                             }