Showing
1 changed file
with
1 additions
and
1 deletions
@@ -56,7 +56,7 @@ public class YtThirdPlatformServiceImpl extends AbstractBaseService<YtThirdPlatf | @@ -56,7 +56,7 @@ public class YtThirdPlatformServiceImpl extends AbstractBaseService<YtThirdPlatf | ||
56 | public YtThirdUserDTO saveOrUpdate(YtThirdUserDTO videoDTO) { | 56 | public YtThirdUserDTO saveOrUpdate(YtThirdUserDTO videoDTO) { |
57 | User user = userMapper.selectById(videoDTO.getAppUserId()); | 57 | User user = userMapper.selectById(videoDTO.getAppUserId()); |
58 | if(user == null){ | 58 | if(user == null){ |
59 | - | 59 | + throw new YtDataValidationException(ErrorMessage.USER_NOT_EXISTS.getMessage()); |
60 | } | 60 | } |
61 | if(StringUtils.isEmpty(user.getAvatar()) && StringUtils.isNotEmpty(videoDTO.getAvatarUrl())){ | 61 | if(StringUtils.isEmpty(user.getAvatar()) && StringUtils.isNotEmpty(videoDTO.getAvatarUrl())){ |
62 | user.setAvatar(videoDTO.getAvatarUrl()); | 62 | user.setAvatar(videoDTO.getAvatarUrl()); |