Commit 7c7e0bc7c42d2210470ce54b9b33221b250f9d5e

Authored by xp.Huang
1 parent f1560e2e

fix: 流媒体配置地址重复

... ... @@ -46,7 +46,7 @@ public class TkVideoPlatformServiceImpl extends AbstractBaseService<TkVideoPlatf
46 46 TkVideoPlatformEntity entity = baseMapper.selectOne(new LambdaQueryWrapper<TkVideoPlatformEntity>()
47 47 .eq(TkVideoPlatformEntity::getHost, videoPlatformDTO.getHost())
48 48 .eq(TkVideoPlatformEntity::getTenantId,videoPlatformDTO.getTenantId()));
49   - if (null != entity) {
  49 + if (null != entity && (StringUtils.isEmpty(videoPlatformDTO.getId()) || !entity.getId().equals(videoPlatformDTO.getId()))) {
50 50 throw new TkDataValidationException(ErrorMessage.VIDEO_PLATFORM_HOST_EXISTED.getMessage());
51 51 }
52 52 if (StringUtils.isNotEmpty(videoPlatformDTO.getId())) {
... ...