luodangjia
2024-12-16 a8d2cb07f6440dc54dc4005b0b06d5a47cb1517d
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsEvaluateController.java
@@ -90,7 +90,7 @@
     * 删除评论
     */
    @DeleteMapping("/delete/{id}")
    @ApiOperation(value = "商品管理-评价管理-删除评论-删除评论", tags = {"管理后台"})
    @ApiOperation(value = "删除评论", tags = {"管理后台-商品管理-评价管理"})
    public R<Void> delete(@PathVariable("id") Long id){
        goodsEvaluateService.removeById(id);
        return R.ok();
@@ -100,7 +100,7 @@
     * 评论列表
     */
    @GetMapping("/list")
    @ApiOperation(value = "商品管理-评价管理-评论列表-评论列表", tags = {"管理后台"})
    @ApiOperation(value = "评论列表", tags = {"管理后台-商品管理-评价管理"})
    public R<List<GoodsEvaluate>> list(GoodsEvaluate goodsEvaluate){
        List<GoodsEvaluate> list = goodsEvaluateService.lambdaQuery()
                .like(StringUtils.isNotEmpty(goodsEvaluate.getGoodsName()),GoodsEvaluate::getGoodsName, goodsEvaluate.getComment())
@@ -130,7 +130,7 @@
     * 评论详情
     */
    @GetMapping("/{id}")
    @ApiOperation(value = "商品管理-评价管理-评论详情", tags = {"管理后台"})
    @ApiOperation(value = "评论详情", tags = {"管理后台-商品管理-评价管理"})
    public R<GoodsEvaluate> getDetail(@PathVariable("id") Long id){
        GoodsEvaluate goodsEvaluate = goodsEvaluateService.getById(id);
        buildDetail(goodsEvaluate);
@@ -141,7 +141,7 @@
     * 评论上/下架
     */
    @PutMapping("/changeStatus")
    @ApiOperation(value = "商品管理-评价管理-评论上/下架", tags = {"管理后台"})
    @ApiOperation(value = "上/下架", tags = {"管理后台-商品管理-评价管理"})
    public R<Void> changeStatus(@RequestBody GoodsEvaluate goodsEvaluate){
        goodsEvaluateService.update(new LambdaUpdateWrapper<GoodsEvaluate>()
                .eq(GoodsEvaluate::getId, goodsEvaluate.getId())