郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
package com.gkhy.safePlatform.account.service.baseService;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gkhy.safePlatform.account.entity.user.UserInfo;
import com.gkhy.safePlatform.account.entity.user.UserInfoDO;
import com.gkhy.safePlatform.account.model.query.db.AccountDBQuery;
 
import java.util.List;
 
public interface UserInfoService extends IService<UserInfo> {
 
    /**
     * @Description: 根据用户名查找用户
     */
    UserInfo getUserByUsername(String username);
 
 
    /**
     * @Description: 根据用id查找用户
     */
    UserInfo getUserByUserId(Long userId);
 
 
    /**
    * @Description: 弃用用户
    */
    void abandonAccount(Long userId);
 
 
    /**
    * @Description: 保存用户
    */
    void saveUserInfo(UserInfo userInfo);
 
 
    /**
    * @Description: 修改用户
    */
    void updateUserInfo(UserInfo userInfo);
 
 
    /**
    * @Description: 分页查询用户列表
    */
    List<UserInfoDO> listPage(Page<UserInfoDO> page, AccountDBQuery accountDBQuery);
 
 
 
    /**
    * @Description: 获取部门下用户信息
    */
    List<UserInfoDO> getDepUserList(Long depId);
 
    /**
    * @Description: 部门下的总人数
    */
    long countByDepId(Long depId);
 
    /**
     * @Description: 岗位下总人数
     */
    long countByPositionId(Long positionId);
 
 
    /**
    * @Description: 获取正常用户的身份证个数
    */
    long countByIdentify(String identify);
 
 
    /**
    * @Description: 获取用户真名=realName的个数 与状态无关
    */
    long countByRealName(String realName);
 
 
 
    /**
    * @Description: 根据 phone 获取 有效用户
    */
    UserInfoDO getUserByPhone(String phone);
 
 
    /**
    * @Description: 根据 phone 获取正常用户个数
    */
    long countByPhone(String phone);
 
 
    /**
    * @Description: 获取所有用户
    */
    List<UserInfoDO> listAllUser();
 
 
    /**
    * @Description: 根据 uids 获取 n 个用户
    */
    List<UserInfoDO> listUserByUids(List<Long> uids);
 
 
    List<UserInfoDO> listUserByRealName(String realName);
 
    /**
    * @Description: 根据 roleId 获取 用户个数
    */
    long countByRoleId(Long roleId);
 
    /**
    * @Description: 根据 roleId 解绑 重置用户 roleId 为 null
    */
    void resetRoleToNullByRoleId(Long roleId);
 
 
    /**
    * @Description: 根据 identify 获取用户
    */
    UserInfo getUserInfoByIdentify(String identify);
 
 
    /**
     * @Description: 根据 phone 获取用户
     */
    UserInfo getUserInfoByPhone(String phone);
 
    /**
     * @Description: 根据 email 获取用户
     */
    UserInfo getUserInfoByEmail(String email);
 
 
    /**
    * @Description: 根据 email 获取 用户个数
    */
    long countByEmail(String email);
 
 
    /**
    * @Description: 根据 uid 更新 用户的 salt 和 hash
    */
    void updatePassword(Long uid, String salt, String hash);
 
}