|
@@ -114,7 +114,11 @@ public class BigScreenSbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, Sb
|
|
|
SbInfo sbInfo = new SbInfo();
|
|
|
sbInfo.setBaoyangTimes(lineNum);
|
|
|
List<SbInfo> list = mapper.select(sbInfo);
|
|
|
+ if(CollectionUtils.isEmpty(list)){
|
|
|
+ throw new BusinessException("该电力线路下没有设备,请先在设备详情中添加线路,将设备和线路进行绑定" );
|
|
|
+ }
|
|
|
List<String> ids = list.stream().map(SbInfo::getId).collect(Collectors.toList());
|
|
|
+
|
|
|
// 查询所有的遥测点位
|
|
|
Weekend<RemoteMeasure> remoteDegreeWeekend = new Weekend<>(RemoteMeasure.class);
|
|
|
WeekendCriteria<RemoteMeasure, Object> remoteDegreeObjectWeekendCriteria = remoteDegreeWeekend.weekendCriteria();
|