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("该用户名已存在,请重新输入!"); } // 新增用户基本信息