admin
2019-01-05 86e46bc28e78b3a883132816e23dbcca37f9ca3a
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
41
42
43
44
45
46
package com.yeshi.fanli.dao.mybatis.order;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.order.HongBaoOrder;
 
public interface HongBaoOrderMapper extends BaseMapper<HongBaoOrder> {
 
    /**
     * 根据订单ID查询对象
     * 
     * @param id
     * @return
     */
    HongBaoOrder selectByCommonOrderId(Long id);
 
    /**
     * 根据红包ID查询对象
     * 
     * @param id
     * @return
     */
    HongBaoOrder selectByHongBaoId(Long id);
 
    /**
     * 返利订单列表(1.4.9之前)
     * 
     * @param uid
     * @param start
     * @param count
     * @return
     */
    List<HongBaoOrder> listFanLiOrder(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
 
    /**
     * 返利订单数量(1.4.9之前)
     * 
     * @param uid
     * @return
     */
    Long countFanLiOrder(Long uid);
 
}