Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -54,8 +54,9 @@ public class TkVideoPlatformServiceImpl extends AbstractBaseService<TkVideoPlatf |
54 | 54 | } |
55 | 55 | baseMapper.updateById(videoPlatformDTO.getEntity(TkVideoPlatformEntity.class)); |
56 | 56 | } else { |
57 | - TkVideoPlatformEntity entity = baseMapper.selectOne(new LambdaQueryWrapper<TkVideoPlatformEntity>(). | |
58 | - eq(TkVideoPlatformEntity::getHost, videoPlatformDTO.getHost())); | |
57 | + TkVideoPlatformEntity entity = baseMapper.selectOne(new LambdaQueryWrapper<TkVideoPlatformEntity>() | |
58 | + .eq(TkVideoPlatformEntity::getHost, videoPlatformDTO.getHost()) | |
59 | + .eq(TkVideoPlatformEntity::getTenantId,videoPlatformDTO.getTenantId())); | |
59 | 60 | if (null != entity) { |
60 | 61 | throw new TkDataValidationException(ErrorMessage.VIDEO_PLATFORM_HOST_EXISTED.getMessage()); |
61 | 62 | } | ... | ... |