admin
2019-03-19 cc2bccd23513832e9c9fb2126e707bed64bd4ecf
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
package com.yeshi.fanli.dao.mybatis;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.bus.user.AccountMessage;
 
public interface AccountMessageMapper {
 
    int deleteByPrimaryKey(Long id);
 
    int insert(AccountMessage record);
 
    int insertSelective(AccountMessage record);
 
    AccountMessage selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(AccountMessage record);
 
    int updateByPrimaryKey(AccountMessage record);
 
    /**
     * 通过用户ID查询消息(id倒叙排列)
     * 
     * @param uid
     * @param start
     * @param count
     * @return
     */
    List<AccountMessage> listByUidOrderByIdDesc(@Param("uid")Long uid, @Param("start")long start, @Param("count")int count);
 
    
    /**
     * 根据用户ID获取是否已经打开的消息数量
     * @param uid
     * @param open
     * @return
     */
    long countByUidAndOpen(@Param("uid")Long uid,@Param("open")Boolean open);
}