Helius
2020-06-15 0169b3c71efc064577a45c5058d458c9ef1cb94a
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
package com.xcong.excoin.system.mapper;
 
import com.xcong.excoin.modules.agent.pojo.AgentUser;
import com.xcong.excoin.system.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * @author MrBird
 */
public interface UserMapper extends BaseMapper<User> {
 
    /**
     * 通过用户名查找用户
     *
     * @param username 用户名
     * @return 用户
     */
    User findByName(String username);
 
    /**
     * 查找用户详细信息
     *
     * @param page 分页对象
     * @param user 用户对象,用于传递查询条件
     * @return Ipage
     */
    <T> IPage<User> findUserDetailPage(Page<T> page, @Param("user") User user);
 
    long countUserDetail(@Param("user") User user);
 
    /**
     * 查找用户详细信息
     *
     * @param user 用户对象,用于传递查询条件
     * @return List<User>
     */
    List<User> findUserDetail(@Param("user") User user);
 
    /**
     * 获取代理商列表
     *
     * @param page
     * @param agentUser
     * @param <T>
     * @return
     */
    IPage<AgentUser> selectAgentUserList(Page<AgentUser> page,@Param("record") AgentUser agentUser);
 
    User selectUserByInviteId(@Param("inviteId") String inviteId);
 
    User selectUserInfoById(@Param("id") Long id);
 
}