Commit b0d389a04999c622c6262b3f40b9a86386be6114

Authored by chenjunyu_1481036421
1 parent 79d6d734

fix:解决多租户下流媒体配置可能存在同一平台地址导致查询出错

... ... @@ -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 }
... ...