From e23242d09e31e1c78f7ecdbc2859c9f99a3c4171 Mon Sep 17 00:00:00 2001
From: luofl <1442745593@qq.com>
Date: 星期一, 17 三月 2025 10:00:59 +0800
Subject: [PATCH] 迭代版本:2.28

---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/mapper/OrderMapper.java |   32 ++++++++++++++++++++++++++------
 1 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/mapper/OrderMapper.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/mapper/OrderMapper.java
index 2353959..e9bce9e 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/mapper/OrderMapper.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/mapper/OrderMapper.java
@@ -2,10 +2,7 @@
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.ruoyi.common.core.web.page.PageInfo;
-import com.ruoyi.order.vo.OrderPageList;
-import com.ruoyi.order.vo.OrderPageListVo;
-import com.ruoyi.order.vo.OrderStatistics;
-import com.ruoyi.order.vo.OrderVO;
+import com.ruoyi.order.vo.*;
 import com.ruoyi.order.model.Order;
 import org.apache.ibatis.annotations.Param;
 
@@ -34,6 +31,29 @@
      */
     List<OrderPageListVo> getOrderPageList(PageInfo<OrderPageListVo> pageInfo,  @Param("item") OrderPageList orderPageList);
 
-    OrderStatistics getOrderStatistics(@Param("startTime")LocalDateTime startTime,
-                                       @Param("endTime") LocalDateTime endTime);
+    OrderStatistics getOrderStatistics(@Param("startTime")String startTime,
+                                       @Param("endTime") String endTime, @Param("shopId") Integer shopId);
+
+
+    /**
+     * 获取商品销售数量
+     * @param goodsId
+     * @return
+     */
+    Integer getGoodsSaleNum(@Param("goodsId") Integer goodsId,
+                            @Param("type") Integer type,
+                            @Param("userId") Long userId);
+
+
+    /**
+     * 获取店铺订单数量
+     * @param shopId
+     * @param type
+     * @return
+     */
+    Integer getShopSaleNum(@Param("shopId") Integer shopId, @Param("type") Integer type);
+
+    Integer getShopSaleNumByShopIds(@Param("shopIds") List<Integer> shopIds, @Param("type") Integer type);
+
+    List<OrderExport> getOrderExportList( @Param("item") OrderPageList order);
 }

--
Gitblit v1.7.1