diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmVideoClient.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmVideoClient.java index 458e2a6..f1a6cf8 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmVideoClient.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmVideoClient.java @@ -29,7 +29,7 @@ public class EmVideoClient implements IEmVideoClient{ @Override @GetMapping(GET_EM_BANDING_VIDEOS) public R> getEmBandingVideos(@RequestParam String emCodes) { - LambdaQueryWrapper wrapper = Wrappers.lambdaQuery().in(EmVideoBandingEntity::getEmCode, Func.toLongList(",",emCodes)); + LambdaQueryWrapper wrapper = Wrappers.lambdaQuery().in(EmVideoBandingEntity::getEmCode, Func.toStrList(",",emCodes)); return R.data(emVideoBandingService.list(wrapper)); } diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java index fdd96f2..2b769ec 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java +++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java @@ -248,6 +248,9 @@ public class AlarmServiceImpl extends BaseServiceImpl .filter(em -> this.isRealIdBanding(realId, em.getNumber())) .map(EmInfoEntity::getNumber) .collect(Collectors.joining(",")); + Assert.isTrue(StringUtil.isNotBlank(emCodes) && Func.isNotEmpty(emCodes), () -> { + throw new ServiceException("未获取到设备!"); + }); R> videoListR = emVideoClient.getEmBandingVideos(emCodes); Assert.isTrue(videoListR.isSuccess(), () -> { throw new ServiceException("获取设备绑定视频列表失败!");