暂态区域报表,添加监测点id验证是否存在
This commit is contained in:
@@ -31,6 +31,7 @@ public enum EventResponseEnum {
|
||||
INDEX_OUT_OF_BOUNDS("A00655","集合索引越界异常"),
|
||||
|
||||
NOT_FOUND("A00656","没有查到数据"),
|
||||
NOT_LINEID("A00657","暂无监测点信息"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user