Pārlūkot izejas kodu

复购价商品最大购买量

chao 3 gadi atpakaļ
vecāks
revīzija
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());
                             }