Эх сурвалжийг харах

!939 updateCommentVisible 应该用前端传入的显示值
Merge pull request !939 from 云扬四海/fix_comment_bug

芋道源码 1 жил өмнө
parent
commit
7f8d3b31d8

+ 1 - 1
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/service/comment/ProductCommentServiceImpl.java

@@ -113,7 +113,7 @@ public class ProductCommentServiceImpl implements ProductCommentService {
 
         // 更新可见状态
         productCommentMapper.updateById(new ProductCommentDO().setId(updateReqVO.getId())
-                .setVisible(true));
+                .setVisible(updateReqVO.getVisible()));
     }
 
     @Override