|
@@ -20,6 +20,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -111,6 +112,12 @@ public class ShopServiceImpl implements ShopService {
|
|
|
// 设置商品主图及价格
|
|
|
Integer userId = shopMapper.getUserIdByshopId(shopId);
|
|
|
priceUtilService.setProductDetails(userId, product);
|
|
|
+ List<LadderPriceVo> ladderPrices = priceMapper.getladderPricesByProductId(product.getProductId());
|
|
|
+ TaxVo tax = priceMapper.getTaxByProductId(product.getProductId());
|
|
|
+ if (!CollectionUtils.isEmpty(ladderPrices)) {
|
|
|
+ priceUtilService.setLadderPriceList(ladderPrices, tax);
|
|
|
+ }
|
|
|
+ product.setLadderPrices(ladderPrices);
|
|
|
}
|
|
|
}
|
|
|
PaginationVo<ProductItemVo> productPage = new PaginationVo<>(productList);
|