xuhy
2024-10-30 660f4451c140a9da1f4bb92721a403b128dbdaf7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.ruoyi.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.basic.PageInfo;
import com.ruoyi.system.domain.TOrderMealGoods;
import com.ruoyi.system.vo.SalesRankingVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * <p>
 * 餐饮订单商品 Mapper 接口
 * </p>
 *
 * @author xiaochen
 * @since 2024-08-14
 */
@Mapper
public interface TOrderMealGoodsMapper extends BaseMapper<TOrderMealGoods> {
 
    /**
     * 获取成本
     * @param ids
     * @return
     */
    BigDecimal costTotal(@Param("ids") List<Long> ids);
 
    /**
     * 获取销售
     * @param ids
     * @param pageInfo
     * @return
     */
    List<SalesRankingVO> salesRanking(@Param("ids")List<Long> ids, @Param("pageInfo")PageInfo<SalesRankingVO> pageInfo);
 
    void deleteByOrderId(@Param("mealIds")List<Long> mealIds);
}