Yansen 11 months ago
parent
commit
d0034808cd

+ 1
- 1
src/main/java/com/example/civilizedcity/service/impl/SysUserServiceImpl.java View File

59
         }
59
         }
60
 
60
 
61
         SysUser sysUser = getById(userId);
61
         SysUser sysUser = getById(userId);
62
-        if (Constants.STATUS_DELETE == sysUser.getStatus()) {
62
+        if (null == sysUser || Constants.STATUS_DELETE == sysUser.getStatus()) {
63
             throw new Exception("用户账户已删除");
63
             throw new Exception("用户账户已删除");
64
         }
64
         }
65
 
65