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
package com.yiboshi.science.service;
import com.yiboshi.science.base.BaseService;
import com.yiboshi.science.entity.SystemUser;
import com.yiboshi.science.param.dto.ComPersonDTO;
import com.yiboshi.science.param.dto.SystemUserDTO;
import com.yiboshi.science.param.dto.UserDTO;
import com.yiboshi.science.param.query.SystemUserQueryVO;
/**
* 用户信息表 Service
*
* @author lkl
* @version 2021-08-26
*/
public interface SystemUserService extends BaseService<SystemUserQueryVO, SystemUserDTO, SystemUser> {
/**
* 根据用户名获取用户
*
* @param username
* @return
*/
SystemUserDTO findByName(String username);
/**
* 创建用户
*
* @return
*/
SystemUser CreateUser(String username, String password, String userId, String roleId, Integer noteState);
void updateRoleById(String userId,String id, String roleId);
/**
* 修改密码
*
* @param user
* @return
*/
String updatePwd(UserDTO user);
/**
* 功能:修改用户状态
*
* @param id 输入值
*/
String updateStateById(String id, Integer noteState);
/**
* 验证证用户名是否存在
*
* @return
*/
Boolean isExist(String username);
/**
* 根据人员编码获取人员信息
*
* @param personCode 人员编码
* @return
*/
SystemUser getByCode(String personCode);
/**
* 重置密码
*/
String resetPwd(ComPersonDTO dto);
/**
* 验证用户名
*/
Boolean checkUserNameById(String username, String id);
/**
* 根据Id 获取用户
*/
SystemUserDTO getSystemUserById(String id);
/**
* 根据Id 获取用户
*/
SystemUser getByPersonId(String personId);
/**
* 更改用户
*/
String updateSystemUser(SystemUserDTO dto);
}