From bd7b8bf9f06b68ae929e9df75c240f276bdd710c Mon Sep 17 00:00:00 2001 From: huangyawei Date: Mon, 27 May 2024 22:15:32 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E4=BF=AE=E5=A4=8Duserinfo=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=9F=A5=E8=AF=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/luoo/user/service/ArtistService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luoo_user/src/main/java/com/luoo/user/service/ArtistService.java b/luoo_user/src/main/java/com/luoo/user/service/ArtistService.java index 87d6cd2..515b3bd 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/ArtistService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/ArtistService.java @@ -95,7 +95,7 @@ public class ArtistService { throw new BizException("用户名不允许修改"); } Integer count = userInfoDao.countByUserNameAndUserNameNotNullAndIdNot(artistRegisterDto.getUserName(), artistRegisterDto.getUserId()); - if (count == 0) { + if (count > 0) { throw new BizException("该用户名已存在,请重新输入!"); } userInfo = UserInfo.builder()