xiangpei
2024-03-28 0f431b52e0936456bd165d9553761bfd8a5a0517
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.other.KeyValue;
import com.mindskip.xzs.domain.User;
import com.mindskip.xzs.viewmodel.admin.user.UserPageRequestVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @version 2.2.0
 * @description: 用户
 * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
 * @date 2021 /9/7 9:45
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
 
 
    int deleteByPrimaryKey(Integer id);
 
    int insert(User record);
 
    int insertSelective(User record);
 
    User selectByPrimaryKey(Integer id);
 
    int updateByPrimaryKeySelective(User record);
 
    int updateByPrimaryKey(User record);
 
 
    /**
     * 获取所有用户
     *
     * @return List<User> all user
     */
    List<User> getAllUser();
 
    /**
     * 根据id获取用户
     *
     * @param id id
     * @return User user by id
     */
    User getUserById(Integer id);
 
    /**
     * 根据用户名获取用户
     *
     * @param username username
     * @return User user by user name
     */
    User getUserByUserName(String username);
 
    /**
     * 根据用户名、密码,获取用户
     *
     * @param username username
     * @param pwd      pwd
     * @return User user by user name pwd
     */
    User getUserByUserNamePwd(@Param("username") String username, @Param("pwd") String pwd);
 
    /**
     * 根据uuid获取用户
     *
     * @param uuid uuid
     * @return User user by uuid
     */
    User getUserByUuid(String uuid);
 
    /**
     * 用户分页
     *
     * @param map userPageList
     * @return List<User> list
     */
    List<User> userPageList(Map<String, Object> map);
 
 
    /**
     * 用户数量
     *
     * @param map map
     * @return Integer integer
     */
    Integer userPageCount(Map<String, Object> map);
 
 
    /**
     * 用户分页
     *
     * @param requestVM requestVM
     * @return List<User> list
     */
    List<User> userPage(UserPageRequestVM requestVM);
 
 
    /**
     * 插入用户
     *
     * @param user user
     */
    void insertUser(User user);
 
    /**
     * 批量插入用户
     *
     * @param users users
     */
    void insertUsers(List<User> users);
 
    /**
     * 更新用户
     *
     * @param user user
     */
    void updateUser(User user);
 
    /**
     * 更新用户年龄
     *
     * @param map map
     */
    void updateUsersAge(Map<String, Object> map);
 
    /**
     * 批量删除用户
     *
     * @param ids ids
     */
    void deleteUsersByIds(List<Integer> ids);
 
    /**
     * 插入用户
     *
     * @param user user
     */
    void insertUserSql(User user);
 
    /**
     * 获取所有用户数量
     *
     * @return the integer
     */
    Integer selectAllCount();
 
    /**
     * 根据用户名获取用户
     *
     * @param userName the user name
     * @return the list
     */
    List<KeyValue> selectByUserName(String userName);
 
    /**
     * 根据id获取用户
     *
     * @param ids the ids
     * @return the list
     */
    List<User> selectByIds(List<Integer> ids);
 
 
    /**
     * 根据微信open获取用户
     *
     * @param wxOpenId the wx open id
     * @return the user
     */
    User selectByWxOpenId(@Param("wxOpenId") String wxOpenId);
}