From c980c8c2cd9403393db6a3f42705612a0a4d4511 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期一, 16 十二月 2024 15:49:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderController.java |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderController.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderController.java
index e0d987d..1f95358 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderController.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/OrderController.java
@@ -22,7 +22,6 @@
 import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
-import java.math.BigInteger;
 import java.time.LocalDateTime;
 import java.util.List;
 
@@ -75,7 +74,7 @@
     /**
      * 订单详情
      */
-    @ApiOperation(value = "订单详情", tags = {"小程序-订单详情"})
+    @ApiOperation(value = "订单详情", tags = {"小程序-个人中心-我的订单-订单详情"})
     @ApiImplicitParams({
             @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"),
     })
@@ -87,7 +86,7 @@
     /**
      * 扫码校验
      */
-    @ApiOperation(value = "扫码校验", tags = {"小程序-个人中心-门店管理-扫码核销校验"})
+    @ApiOperation(value = "扫码校验", tags = {"小程序-个人中心-门店管理"})
     @ApiImplicitParams({
             @ApiImplicitParam(value = "分享id", name = "shareId", required = true, dataType = "int", paramType="query"),
     })
@@ -102,7 +101,7 @@
     /**
      * 订单核销
      */
-    @ApiOperation(value = "订单核销", tags = {"小程序-个人中心-门店管理-扫码核销"})
+    @ApiOperation(value = "订单核销", tags = {"小程序-个人中心-门店管理"})
     @ApiImplicitParams({
             @ApiImplicitParam(value = "订单号", name = "code", required = true, dataType = "String"),
     })
@@ -115,7 +114,7 @@
     /**
      * 取消订单
      */
-    @ApiOperation(value = "取消订单", tags = {"小程序-个人中心-我的订单-取消订单"})
+    @ApiOperation(value = "取消订单", tags = {"小程序-个人中心-我的订单"})
     @ApiImplicitParams({
             @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"),
     })
@@ -130,7 +129,7 @@
     /**
      * 确认收货
      */
-    @ApiOperation(value = "确认收货", tags = {"小程序-个人中心-我的订单-确认收货"})
+    @ApiOperation(value = "确认收货", tags = {"小程序-个人中心-我的订单"})
     @ApiImplicitParams({
             @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"),
     })
@@ -161,7 +160,7 @@
     /**
      * 更换收货地址
      */
-    @ApiOperation(value = "更换收货地址", tags = {"小程序-个人中心-我的订单-更换收货地址"})
+    @ApiOperation(value = "更换收货地址", tags = {"小程序-个人中心-我的订单"})
     @ApiImplicitParams({
             @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"),
     })
@@ -182,7 +181,7 @@
     /**
      * 更新订单状态
      */
-    @ApiOperation(value = "更新订单状态", tags = {"后台-订单管理-更新订单状态"})
+    @ApiOperation(value = "更新订单状态", tags = {"后台-订单管理"})
     @ApiImplicitParams({
             @ApiImplicitParam(value = "订单对象", name = "order", required = true, dataType = "Order"),
     })
@@ -205,6 +204,14 @@
         orderService.updateById(order);
         return R.ok();
     }
+
+    @PostMapping("/getLastOrder")
+    public R<Order> getLastOrder(@RequestParam("appUserId") Long appUserId){
+        Order one = orderService.lambdaQuery().eq(Order::getAppUserId, appUserId).orderByDesc(Order::getCreateTime).last("limit 1").one();
+        return R.ok(one);
+    }
+
+
     
     
     @ResponseBody

--
Gitblit v1.7.1