Browse Source

更新

tags/v2.4.1
xiaoying 1 year ago
parent
commit
b3353e8ce9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java

+ 3
- 1
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java View File

@@ -71,7 +71,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {

log.info("请求参数:{}", createClientUserDto.toString());
if (clientUserMapper.judgeCreateByUserName(createClientUserDto.getUsername()) > 0) {
return getObjectJsonResult(createClientUserDto, loginUser);
return JsonResult.error("该账号已存在");
} else {
UserPo userPo = new UserPo()
.setUsername(createClientUserDto.getUsername())
@@ -146,6 +146,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {
clientUserRoleMapper.batchInsert(clientUserRolePoArrayList);
return JsonResult.success(userPo.getId());
}

@Override
@Transactional(rollbackFor = Exception.class)
public JsonResult updateUserPassword(UpdateUserPassDto updateUserPassDto, LoginUser loginUser) {
@@ -160,6 +161,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {
clientUserMapper.updatePass(userPo);
return JsonResult.success(true);
}

@Override
@Transactional(rollbackFor = Exception.class)
public JsonResult updateUserClientRole(UpdateUserClientRoleDto updateUserClientRoleDto, LoginUser loginUser) {

Loading…
Cancel
Save