From 2c9c8ea6422d271be631ffb93d61ba393c2a1f44 Mon Sep 17 00:00:00 2001
From: zhibing.pu <393733352@qq.com>
Date: 星期四, 22 八月 2024 17:37:56 +0800
Subject: [PATCH] 修改订单服务swagger解析问题

---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TOrderAppealController.java   |    6 +++---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TExchangeOrderController.java |    4 ++--
 ruoyi-modules/ruoyi-system/pom.xml                                                               |   15 +++++----------
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TChargingOrderController.java |    4 +---
 4 files changed, 11 insertions(+), 18 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/pom.xml b/ruoyi-modules/ruoyi-system/pom.xml
index 67ff0c1..756a512 100644
--- a/ruoyi-modules/ruoyi-system/pom.xml
+++ b/ruoyi-modules/ruoyi-system/pom.xml
@@ -39,6 +39,11 @@
             <groupId>com.alibaba.cloud</groupId>
             <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
         </dependency>
+    
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
+        </dependency>
         
     	<!-- SpringBoot Actuator -->
         <dependency>
@@ -108,20 +113,10 @@
 	    <dependency>
 		    <groupId>com.ruoyi</groupId>
 		    <artifactId>ruoyi-api-other</artifactId>
-		    <version>3.6.2</version>
-		    <scope>compile</scope>
 	    </dependency>
 	    <dependency>
 		    <groupId>com.ruoyi</groupId>
 		    <artifactId>ruoyi-api-chargingPile</artifactId>
-		    <version>3.6.2</version>
-		    <scope>compile</scope>
-	    </dependency>
-	    <dependency>
-		    <groupId>io.seata</groupId>
-		    <artifactId>seata-all</artifactId>
-		    <version>1.6.1</version>
-		    <scope>compile</scope>
 	    </dependency>
 
     </dependencies>
diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TChargingOrderController.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TChargingOrderController.java
index 1b3e8bd..726a850 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TChargingOrderController.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TChargingOrderController.java
@@ -57,8 +57,6 @@
     private TokenService tokenService;
     @Autowired
     private TOrderEvaluateService orderEvaluateService;
-    @Autowired
-    private TOrderEvaluateTagService orderEvaluateTagService;
     
     @Resource
     private WxPaymentClient wxPaymentClient;
@@ -178,7 +176,7 @@
     @ResponseBody
     @PostMapping(value = "/paymentChargingOrder")
     @ApiOperation(value = "支付充电充值费用", tags = {"小程序-扫一扫"})
-    public AjaxResult paymentChargingOrder(AddChargingOrder addChargingOrder){
+    public AjaxResult paymentChargingOrder(@RequestBody AddChargingOrder addChargingOrder){
         return chargingOrderService.paymentChargingOrder(addChargingOrder);
     }
     
diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TExchangeOrderController.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TExchangeOrderController.java
index de60d7f..45b69ad 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TExchangeOrderController.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TExchangeOrderController.java
@@ -84,7 +84,7 @@
      * @return
      */
     @PostMapping("/getSalesCountByGoodsIds")
-    public R<List<Integer>> getSalesCountByGoodsId(String goodsIds){
+    public R<List<Integer>> getSalesCountByGoodsId(@RequestParam("goodsIds") String goodsIds){
         String[] split = goodsIds.split("-");
         // 取出最后一位字符 类型1查询现金购买 类型2查询积分兑换
         String s = split[split.length - 1];
@@ -118,7 +118,7 @@
      * @return
      */
     @PostMapping("/getCodeByOrderId")
-    public R<List<String>> getCodeByOrderId(String goodsIds){
+    public R<List<String>> getCodeByOrderId(@RequestParam("goodsIds") String goodsIds){
         String[] split = goodsIds.split("-");
         List<String> strings = new ArrayList<>();
         for (String s : split) {
diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TOrderAppealController.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TOrderAppealController.java
index 8d8ec02..8a2c528 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TOrderAppealController.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TOrderAppealController.java
@@ -50,16 +50,16 @@
     /**
      * 查询订单申诉详情
      */
-    @ApiOperation(tags = {"小程序-订单申诉"},value = "查询订单申诉详情")
     @GetMapping(value = "/getDetailById")
-    public AjaxResult<TOrderAppealVO> getDetailById(@RequestParam("id") Integer id) {
+    @ApiOperation(tags = {"小程序-订单申诉"},value = "查询订单申诉详情")
+    public AjaxResult<TOrderAppealVO> getDetailById(Integer id) {
         return AjaxResult.ok(orderAppealService.getDetailById(id));
     }
     
     
     
     @ResponseBody
-    @GetMapping(value = "/addOrderAppeal")
+    @PostMapping(value = "/addOrderAppeal")
     @ApiOperation(value = "申诉订单", tags = {"小程序-充电记录(个人中心)"})
     public AjaxResult addOrderAppeal(@RequestBody TOrderAppeal orderAppeal){
         Long appUserId = tokenService.getLoginUserApplet().getUserId();

--
Gitblit v1.7.1