Browse Source

租户更新时更新密码相关逻辑

tags/v1.2.0^2
xiaoying 1 year ago
parent
commit
ae9e6c39c4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/EditOidcTenantService.java

+ 3
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/EditOidcTenantService.java View File

return JsonResult.error("修改租户用户,不用户存在"); return JsonResult.error("修改租户用户,不用户存在");
} }
user.setId(userTmp.getId()); user.setId(userTmp.getId());
if (StringUtils.isEmpty(user.getPassword())) {
user.setPassword(userTmp.getPassword());
}
Integer rowCount = userMapper.updateById(user); Integer rowCount = userMapper.updateById(user);
if (rowCount <= 0) { if (rowCount <= 0) {
log.info("修改租户用户失败,username:{}", user.getUsername()); log.info("修改租户用户失败,username:{}", user.getUsername());

Loading…
Cancel
Save