暂态区域报表,添加监测点id验证是否存在

This commit is contained in:
wr
2023-04-17 20:03:43 +08:00
parent e3ce5b4300
commit b4f741c886
2 changed files with 7 additions and 0 deletions

View File

@@ -2090,6 +2090,9 @@ public class ReportServiceImpl implements ReportService {
InfluxDBResultMapper influxDBResultMapper = new InfluxDBResultMapper();
//提前创建,不然获取不到(初始化数据)
if (CollUtil.isEmpty(lineIds)) {
throw new BusinessException(EventResponseEnum.NOT_FOUND);
}
List<EventDetailNew> eventDetailList = getEventDetailListInfo(areaReportParam, lineIds);
List<GeneralDeviceDTO> voltageParamList = generalDeviceInfoClient.getPracticalAllDeviceInfo(areaReportParam).getData();
@@ -5282,6 +5285,9 @@ public class ReportServiceImpl implements ReportService {
InfluxDBResultMapper influxDBResultMapper = new InfluxDBResultMapper();
//提前创建,不然获取不到(初始化数据)
if (CollUtil.isEmpty(lineIds)) {
throw new BusinessException(EventResponseEnum.NOT_LINEID);
}
List<EventDetailNew> eventDetailList = getEventDetailListInfo(areaReportParam, lineIds);
if(CollectionUtil.isEmpty(eventDetailList)){
throw new BusinessException(CommonResponseEnum.NO_DATA);