Commit 8a979b0f6a00065be2018a84e7a5b713a3d40581

Authored by maliang
1 parent f90e6a723e
Exists in master

抛出异常

Showing 1 changed file with 5 additions and 4 deletions

center.manager/src/main/java/com/lyms/cm/service/sys/impl/SysUsersServiceImpl.java View file @ 8a979b0
... ... @@ -10,6 +10,7 @@
10 10 import com.lyms.cm.entity.sys.SysUsers;
11 11 import com.lyms.cm.enums.UserStatusEnum;
12 12 import com.lyms.cm.service.sys.ISysUsersService;
  13 +import com.lyms.exception.SystemException;
13 14 import com.lyms.util.MD5Utils;
14 15 import com.lyms.util.StrUtils;
15 16  
... ... @@ -51,7 +52,7 @@
51 52  
52 53 @Override
53 54 @Transactional
54   - public boolean addUser(SysUsers user) {
  55 + public boolean addUser(SysUsers user) throws SystemException {
55 56 if (empty(user))
56 57 return false;
57 58 // 设置user ID
... ... @@ -65,7 +66,7 @@
65 66  
66 67 @Override
67 68 @Transactional
68   - public boolean updateUser(SysUsers user) {
  69 + public boolean updateUser(SysUsers user) throws SystemException {
69 70 if (empty(user))
70 71 return false;
71 72 Integer tag = userMapper.updateById(user);
... ... @@ -73,7 +74,7 @@
73 74 }
74 75  
75 76 @Override
76   - public SysUsers getUserById(String userId) {
  77 + public SysUsers getUserById(String userId) throws SystemException {
77 78 if (StringUtils.isBlank(userId))
78 79 return null;
79 80 return userMapper.selectById(userId);
... ... @@ -81,7 +82,7 @@
81 82  
82 83 @Override
83 84 @Transactional
84   - public boolean enabled(String userId) {
  85 + public boolean enabled(String userId) throws SystemException {
85 86 // TODO 编写SQL 修改
86 87 SysUsers user = this.getUserById(userId);
87 88 if (empty(user))