Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -186,6 +186,8 @@ public class YtUserController extends AbstractUserAccount { |
186 | 186 | } |
187 | 187 | userService.validateUserNameAndPhoneNumberAndEmail(userDTO); |
188 | 188 | TenantId tenantId = TenantId.fromUUID(UUID.fromString(userDTO.getTenantId())); |
189 | + UserDTO returnUser = userService.saveTenantAdmin( | |
190 | + userDTO, getCurrentUser().isPtSysadmin(), tenantId.getId().toString()); | |
189 | 191 | try { |
190 | 192 | // 创建TB的租户管理员 |
191 | 193 | CustomerId customerId = new CustomerId(EntityId.NULL_UUID); |
... | ... | @@ -200,8 +202,7 @@ public class YtUserController extends AbstractUserAccount { |
200 | 202 | throw handleException(e); |
201 | 203 | } |
202 | 204 | |
203 | - return userService.saveTenantAdmin( | |
204 | - userDTO, getCurrentUser().isPtSysadmin(), tenantId.getId().toString()); | |
205 | + return returnUser; | |
205 | 206 | } |
206 | 207 | |
207 | 208 | @DeleteMapping | ... | ... |