1
zj
8 days ago 7d008bf58373926bbdcf67fa7bcf92510f427fb6
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package com.nq.dao;
 
import com.nq.pojo.SiteMessage;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 *  站内消息
 * @author lr 2020-07-16
 */
public interface SiteMessageMapper {
    /**
     * [新增]
     * @author lr
     * @date 2020/07/16
     **/
    int insert(SiteMessage siteMessage);
 
    /**
     * [刪除]
     * @author lr
     * @date 2020/07/16
     **/
    int delete(int id);
 
    /**
     * [更新]
     * @author lr
     * @date 2020/07/16
     **/
    int update(SiteMessage siteMessage);
 
    /**
     * [查询] 根据主键 id 查询
     * @author lr
     * @date 2020/07/16
     **/
    SiteMessage load(int id);
 
 
    /*查询用户站内消息列表*/
    List getSiteMessageByUserIdList(@Param("userId") Integer userId);
 
    /**
     * [今天该类型的站内消息是否推送过]
     * @author lr
     * @date 2020/07/16
     **/
    int getIsDayCount(@Param("userId") Integer userId,@Param("typeName") String typeName);
 
    /**
     * [用户站内消息状态变已读]
     * @author lr
     * @date 2020/07/16
     **/
    int updateMessageStatus(@Param("userId") Integer userId);
 
    /**
     * [查询用户未读消息数]
     * @author lr
     * @date 2020/07/16
     **/
    int getUnreadCount(@Param("userId") Integer userId);
 
}