|
|
@@ -432,7 +432,13 @@ public class UserServiceImpl implements UserService {
|
|
|
public void unbindUserspace(Long userUU, Long spaceUU) {
|
|
|
// 找到用户和企业
|
|
|
User user = findOne(userUU);
|
|
|
+ if (user == null) {
|
|
|
+ throw new VisibleError("未找到用户信息");
|
|
|
+ }
|
|
|
Userspace userspace = userspaceService.findOne(spaceUU);
|
|
|
+ if (userspace == null) {
|
|
|
+ throw new VisibleError("未找到企业信息");
|
|
|
+ }
|
|
|
|
|
|
// 将企业添加到用户列表上
|
|
|
Set<Userspace> userspaces = user.getUserSpaces();
|