|
@@ -181,7 +181,7 @@ public class WebTenantGatewayImpl implements WebTenantGateway {
|
|
|
} else {
|
|
|
|
|
|
AdminUserInfo exist = adminUserService.queryByAccount(req.getAccount());
|
|
|
- if (exist != null && exist.getUserId() != req.getUserId()) {
|
|
|
+ if (exist != null && !exist.getUserId().equals(req.getUserId())) {
|
|
|
throw new BizException(ErrorEnum.USER_ALREADY_EXISTS.getErrorCode(), ErrorEnum.USER_ALREADY_EXISTS.getErrorMessage());
|
|
|
}
|
|
|
//2.保存新用户到 admin_user_info 表
|