yujian
2019-11-06 54e6398cabe1b32b1dbc9857c6a99d8f15b549f7
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.user;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.user.UserCustomSettings;
 
public interface UserCustomSettingsMapper extends BaseMapper<UserCustomSettings> {
 
    /**
     * 获取我的所有自定义设置
     * 
     * @param uid
     * @return
     */
    List<UserCustomSettings> getSettingsByUid(Long uid);
 
    /**
     * 获取设置信息
     * 
     * @param uid
     *            用户id
     * @param type
     *            类型
     * @return
     */
    UserCustomSettings getSettingsByUidAndType(@Param("uid") Long uid, @Param("type") String type);
 
    List<Long> getUserID(@Param("type") String type);
 
    /**
     * 通过用户ID,类型,状态检索
     * 
     * @param uidList
     * @param type
     * @param state
     * @return
     */
    List<UserCustomSettings> listByUidListAndTypeAndState(@Param("uidList") List<Long> uidList,
            @Param("type") String type, @Param("state") Integer state);
 
}