|
@@ -9,6 +9,7 @@ import com.caimei365.commodity.utils.MathUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
@@ -178,6 +179,12 @@ public class PriceUtilService {
|
|
product.setUserIdentity(price.getUserIdentity());
|
|
product.setUserIdentity(price.getUserIdentity());
|
|
product.setRepurchaseFlag(price.getRepurchaseFlag());
|
|
product.setRepurchaseFlag(price.getRepurchaseFlag());
|
|
product.setMaxBuyNumber(price.getMaxBuyNumber());
|
|
product.setMaxBuyNumber(price.getMaxBuyNumber());
|
|
|
|
+ List<LadderPriceVo> ladderPrices = priceMapper.getladderPricesByProductId(product.getProductId());
|
|
|
|
+ TaxVo tax = priceMapper.getTaxByProductId(product.getProductId());
|
|
|
|
+ if (!CollectionUtils.isEmpty(ladderPrices)) {
|
|
|
|
+ setLadderPriceList(ladderPrices, tax);
|
|
|
|
+ }
|
|
|
|
+ product.setLadderPrices(ladderPrices);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|