Appearance
评价存在哪、谁能写、商家怎么回复和隐藏。读完能对上 product_comment.visible 和 orderId / orderItemId。
product_comment.visible
orderId
orderItemId
默认端口 48080。开启见 商城功能设计。订单见 交易订单。
48080
示意图:用户评价挂会员和订单项。管理端可以回复、隐藏,也可以加自评。
@RequestMapping("/product/comment")
ruoyi-office/yudao-module-mall/yudao-module-product-server/.../controller/admin/comment/ProductCommentController.java
PUT /update-visible
PUT /reply
POST /create
/product/comment
AppProductCommentController
product_comment
ProductCommentDO
ruoyi-office-vben/apps/web-antd/src/views/mall/product/comment/
官方菜单:商品评论 2336。路由 /mall/product/comment。权限 product:comment:update。
2336
/mall/product/comment
product:comment:update
userId 是会员,不是系统用户。匿名时昵称用常量 匿名用户。
userId
匿名用户
spuId
skuId
visible
true
false
scores
descriptionScores
benefitScores
replyStatus
replyContent
replyUserId
订单表有 commentStatus。用户端评价成功后回写,避免同一订单项重复评。具体拦截看评价服务,不要自己改订单状态。
commentStatus
自评也是同一张表
POST /create 是商家补评价,不是第二套「虚拟评论」表。visible 仍可隐藏。用户端列表按可见过滤。
示意图:按评论 Controller 的三个写接口。没有独立审核状态字段,显隐靠 visible。
走 商品中心 → 商品评论(2336,/mall/product/comment)。用户端评价成功后回写订单 commentStatus。管理端改 visible 隐藏,或填 replyContent 回复(replyUserId 是管理员)。
POST /create 是商家补评,仍落 product_comment。没有独立审核状态。开启见 商城功能设计。
本系统截图:评论列表。
获取报价、演示和二开方案
微信咨询
17156169080
添加时备注「RuoYi Office」
商品评价
这篇解决什么
评价存在哪、谁能写、商家怎么回复和隐藏。读完能对上
product_comment.visible和orderId/orderItemId。默认端口
48080。开启见 商城功能设计。订单见 交易订单。示意图:用户评价挂会员和订单项。管理端可以回复、隐藏,也可以加自评。
从哪改
@RequestMapping("/product/comment")ruoyi-office/yudao-module-mall/yudao-module-product-server/.../controller/admin/comment/ProductCommentController.javaPUT /update-visiblePUT /replyPOST /create/product/commentAppProductCommentControllerproduct_commentProductCommentDOruoyi-office-vben/apps/web-antd/src/views/mall/product/comment/官方菜单:商品评论
2336。路由/mall/product/comment。权限product:comment:update。字段
userId是会员,不是系统用户。匿名时昵称用常量匿名用户。orderId/orderItemIdProductCommentDOspuId/skuIdvisibletrue展示,false隐藏scoresdescriptionScores/benefitScoresreplyStatus/replyContentreplyUserId订单表有
commentStatus。用户端评价成功后回写,避免同一订单项重复评。具体拦截看评价服务,不要自己改订单状态。自评也是同一张表
POST /create是商家补评价,不是第二套「虚拟评论」表。visible仍可隐藏。用户端列表按可见过滤。示意图:按评论 Controller 的三个写接口。没有独立审核状态字段,显隐靠
visible。配置与操作
走 商品中心 → 商品评论(
2336,/mall/product/comment)。用户端评价成功后回写订单commentStatus。管理端改visible隐藏,或填replyContent回复(replyUserId是管理员)。POST /create是商家补评,仍落product_comment。没有独立审核状态。开启见 商城功能设计。本系统截图:评论列表。
相关篇