admin
2019-02-22 e358583d644fa39fc1e93b14b3cafff3644980e4
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
47
48
49
50
51
52
package com.yeshi.fanli.system.dao.msg;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
import org.fanli.facade.system.entity.msg.UserSystemMsg;
 
import com.yeshi.fanli.base.BaseMapper;
 
public interface UserSystemMsgMapper extends BaseMapper<UserSystemMsg> {
 
    /**
     * 用户系统消息列表
     * 
     * @param uid
     * @param start
     * @param count
     * @return
     */
    List<UserSystemMsg> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
 
    /**
     * 用户系统消息数量
     * 
     * @param uid
     * @return
     */
    Long countByUid(@Param("uid") Long uid);
 
    /**
     * 根据系统站内信的ID获取消息
     * 
     * @param id
     * @return
     */
    UserSystemMsg selectBySystemZNXId(@Param("id") Long id);
 
    /**
     * 获取最近一条消息
     * 
     * @param uid
     * @return
     */
    UserSystemMsg selectLatestUserSystemMsg(@Param("uid") Long uid);
 
    /**
     * 设置消息已读时
     * 
     * @param uid
     */
    void setMsgReadByUid(Long uid);
}