From 450bcae3cfffe9923dc09dea2a4e89312bb373d7 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期五, 31 七月 2026 15:01:03 +0800
Subject: [PATCH] 库存流水修改
---
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/controller/admin/comment/ProductCommentController.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/controller/admin/comment/ProductCommentController.java b/yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/controller/admin/comment/ProductCommentController.java
index 3cac6d0..5055bb9 100644
--- a/yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/controller/admin/comment/ProductCommentController.java
+++ b/yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/controller/admin/comment/ProductCommentController.java
@@ -7,6 +7,7 @@
import cn.iocoder.yudao.module.product.dal.dataobject.comment.ProductCommentDO;
import cn.iocoder.yudao.module.product.service.comment.ProductCommentService;
import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
@@ -34,6 +35,15 @@
return success(BeanUtils.toBean(pageResult, ProductCommentRespVO.class));
}
+ @GetMapping("/get")
+ @Operation(summary = "鑾峰緱鍟嗗搧璇勪环")
+ @Parameter(name = "id", description = "缂栧彿", required = true, example = "1024")
+ @PreAuthorize("@ss.hasPermission('product:comment:query')")
+ public CommonResult<ProductCommentRespVO> getComment(@RequestParam("id") Long id) {
+ ProductCommentDO comment = productCommentService.getComment(id);
+ return success(BeanUtils.toBean(comment, ProductCommentRespVO.class));
+ }
+
@PutMapping("/update-visible")
@Operation(summary = "鏄剧ず / 闅愯棌璇勮")
@PreAuthorize("@ss.hasPermission('product:comment:update')")
--
Gitblit v1.9.3