|
@@ -39,9 +39,6 @@ public class NutritionProductService {
|
|
|
private NutritionProductReviewMapper reviewMapper;
|
|
private NutritionProductReviewMapper reviewMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
- @Resource
|
|
|
|
|
- private ProductService productService;
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
|
private NutritionUlLimitMapper ulLimitMapper;
|
|
private NutritionUlLimitMapper ulLimitMapper;
|
|
@@ -266,7 +263,7 @@ public class NutritionProductService {
|
|
|
* @return true=成功/已存在, false=主商品不存在
|
|
* @return true=成功/已存在, false=主商品不存在
|
|
|
*/
|
|
*/
|
|
|
public boolean addNutritionProductFromProduct(Long productId) {
|
|
public boolean addNutritionProductFromProduct(Long productId) {
|
|
|
- Product product = productService.getById(productId);
|
|
|
|
|
|
|
+ Product product = productMapper.selectById(productId);
|
|
|
if (product == null) {
|
|
if (product == null) {
|
|
|
log.warn("主平台商品不存在,ID: {}", productId);
|
|
log.warn("主平台商品不存在,ID: {}", productId);
|
|
|
return false;
|
|
return false;
|