解决json解析异常

This commit is contained in:
2024-05-16 09:33:23 +08:00
parent bba53f7d57
commit f184e371f0
15 changed files with 87 additions and 30 deletions

View File

@@ -1153,7 +1153,8 @@ public class HistoryResultServiceImpl implements HistoryResultService {
//以时间分组时,需要加上时间间隔,比如此处需要加上监测点的采样间隔
.groupBy("time(" + lineDetailData.getInterval() + "m)")
.timeAsc();
historyData = dataIMapper.getIHistoryData(influxQueryWrapper);
String string = influxQueryWrapper.generateSql();
historyData = dataIMapper.getIHistoryData(string);
if (CollectionUtils.isEmpty(historyData)) {
//如果数据为空,则提示给用户暂无数据
throw new BusinessException(HarmonicResponseEnum.NO_DATA);