admin
2019-09-24 3f042f2d3ce9bae01678c8e57425f71d774eaad5
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
package com.yeshi.fanli.dao.mybatis.push;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.push.DeviceTokenOPPO;
 
public interface DeviceTokenOPPOMapper extends BaseMapper<DeviceTokenOPPO> {
 
    /**
     * 根据设备激活ID查询
     * 
     * @param deviceActiveId
     * @return
     */
    DeviceTokenOPPO selectByDeviceActiveId(Long deviceActiveId);
 
    /**
     * 设备数量
     * 
     * @return
     */
    long countDeviceToken(@Param("versionList")List<Integer> versionList);
 
    /**
     * 设备列表
     * 
     * @param start
     * @param count
     * @return
     */
    List<DeviceTokenOPPO> listDeviceToken(@Param("start") long start, @Param("count") int count,
            @Param("versionList") List<Integer> versionList);
 
    /**
     * 根据用户ID查询
     * 
     * @param uid
     * @return
     */
    List<DeviceTokenOPPO> listByUid(@Param("uid")Long uid,@Param("versionList") List<Integer> verisonList);
}