|
|
@@ -59,6 +59,9 @@ public class ProductService {
|
|
|
@Resource
|
|
|
private GrowthArchiveProductService growthArchiveProductService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private NutritionProductService nutritionProductService;
|
|
|
+
|
|
|
@Resource
|
|
|
private ProductDeliveryConfigService productDeliveryConfigService;
|
|
|
|
|
|
@@ -170,7 +173,6 @@ wrapper.in(Product::getId, productIds)
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- nutritionProductService.syncFromProduct(product);
|
|
|
// 供应商可见过滤:仅对非供应商体系用户生效,供应商体系内用户可查看全部商品
|
|
|
boolean isVendor = isVendorUser(userId, role);
|
|
|
if (!isVendor && !isGuest(userId)) {
|
|
|
@@ -251,7 +253,6 @@ wrapper.in(Product::getId, productIds)
|
|
|
ProductDTO.BundleItemVO vo = new ProductDTO.BundleItemVO();
|
|
|
vo.setChildProductId(child.getId());
|
|
|
vo.setChildProductName(child.getName());
|
|
|
- nutritionProductService.syncFromProduct(product);
|
|
|
vo.setCoverImage(child.getCoverImage());
|
|
|
vo.setChildSkuId(bi.getChildSkuId());
|
|
|
vo.setQuantity(bi.getQuantity());
|
|
|
@@ -293,6 +294,7 @@ wrapper.in(Product::getId, productIds)
|
|
|
if (!deliveryConfig.isEmpty()) {
|
|
|
dto.setDeliveryConfig(deliveryConfig);
|
|
|
}
|
|
|
+ nutritionProductService.syncFromProduct(product);
|
|
|
return Result.success(dto);
|
|
|
}
|
|
|
|