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