From 1d958a3eddce39a2d60943f48acbc1e2862ce65b Mon Sep 17 00:00:00 2001 From: huangyawei Date: Tue, 28 May 2024 20:03:19 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= 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 515b3bd..7da499c 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 @@ -134,7 +134,7 @@ public class ArtistService { throw new BizException(ErrorConstants.USER_ALREADY_EXISTS_ARTIST); } Integer count = userInfoDao.countByUserNameAndUserNameNotNull(artistRegisterDto.getUserName()); - if (count == 0) { + if (count > 0) { throw new BizException("该用户名已存在,请重新输入!"); } // 新增用户基本信息