فهرست منبع

获取订单评价详细信息

Guos 1 ماه پیش
والد
کامیت
b0f23e7617
1فایلهای تغییر یافته به همراه22 افزوده شده و 3 حذف شده
  1. 22 3
      fs-store/src/main/java/com/fs/hisStore/controller/store/FsStoreOrderScrmController.java

+ 22 - 3
fs-store/src/main/java/com/fs/hisStore/controller/store/FsStoreOrderScrmController.java

@@ -66,6 +66,9 @@ import java.util.Map;
 public class FsStoreOrderScrmController extends BaseController
 {
 
+    @Autowired
+    private IFsStoreOrderScrmCommentService fsStoreOrderScrmCommentService;
+
     @Autowired
     private IFsUserService userService;
     @Autowired
@@ -117,6 +120,25 @@ public class FsStoreOrderScrmController extends BaseController
     @Autowired
     private FsStoreVerifyCodeScrmMapper fsStoreVerifyCodeService;
 
+    /**
+     * 获取订单评价详细信息
+     */
+    @GetMapping(value = "/comment/{commentId}")
+    public AjaxResult getCommentInfo(@PathVariable("commentId") Long commentId)
+    {
+        return AjaxResult.success(fsStoreOrderScrmCommentService.selectFsStoreOrderScrmCommentByCommentId(commentId));
+    }
+
+    /**
+     * 修改订单评价
+     */
+    @Log(title = "订单评价", businessType = BusinessType.UPDATE)
+    @PutMapping("/comment")
+    public AjaxResult edit(@RequestBody FsStoreOrderScrmComment fsStoreOrderScrmComment)
+    {
+        return toAjax(fsStoreOrderScrmCommentService.updateFsStoreOrderScrmComment(fsStoreOrderScrmComment));
+    }
+
     /**
      * 查询订单列表
      */
@@ -186,9 +208,6 @@ public class FsStoreOrderScrmController extends BaseController
         return AjaxResult.success(message);
     }
 
-    @Autowired
-    IFsStoreOrderScrmCommentService fsStoreOrderScrmCommentService;
-
     /**
      * 获取订单详细信息
      */