|
|
@@ -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) { |