解决json解析异常
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user