dingxin 6 years ago
parent
commit
bdeaa36d5d

+ 3
- 1
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToBannerServiceImpl.java View File

@@ -209,7 +209,9 @@ public class ToBannerServiceImpl implements IToBannerService {
209 209
             toBannerVO.setBannerPositionName(e.getBannerPosition() == 1?"首页banner":"服务banner");
210 210
 
211 211
             ToUser toUser = toUserMapper.selectByPrimaryKey(e.getUpdateUser());
212
-            toBannerVO.setUpdateUserName(toUser.getUserName());
212
+            if (null != toUser) {
213
+                toBannerVO.setUpdateUserName(toUser.getUserName());
214
+            }
213 215
 
214 216
             return toBannerVO;
215 217
 

+ 4
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java View File

@@ -67,6 +67,10 @@ public class ToUserServerImpl implements IToUserService {
67 67
             response.addError("您不是系统人员,不可登录");
68 68
             return response;
69 69
         }
70
+        if ("0".equals(currentUser.getStatus())) {
71
+            response.addError("您的账号已被停用!");
72
+            return response;
73
+        }
70 74
 
71 75
         ToUserVO userVO = new ToUserVO();
72 76
         BeanUtils.copyProperties(currentUser,userVO);