| | |
| | | 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper 接口 |
| | | * Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author luodangjia |
| | |
| | | /** |
| | | * 查询用户id |
| | | */ |
| | | List<OrderVO> selectOrderListByUserId(Integer status, Long userId); |
| | | 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); |
| | | } |