From c27c1f2beb4ca89a94eaa854fce6b4553db8f2f8 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期三, 15 一月 2025 19:58:12 +0800 Subject: [PATCH] 修改 --- ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/mapper/OrderMapper.java | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 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 eae8c99..903558a 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 @@ -1,10 +1,15 @@ package com.ruoyi.order.mapper; 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.model.Order; import org.apache.ibatis.annotations.Param; +import java.time.LocalDateTime; import java.util.List; /** @@ -20,4 +25,34 @@ * 查询用户id */ List<OrderVO> selectOrderListByUserId(@Param("status") Integer status, @Param("userId") Long userId); + + + /** + * 管理后台获取订单列表数据 + * @param orderPageList + * @return + */ + List<OrderPageListVo> getOrderPageList(PageInfo<OrderPageListVo> pageInfo, @Param("item") OrderPageList orderPageList); + + 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); } -- Gitblit v1.7.1