Commit 0966861c authored by 高建强's avatar 高建强

item:修改启停间隔,redis数据失效统计bug

parent e996f7ee
...@@ -547,7 +547,7 @@ public class EmergencyServiceImpl implements IEmergencyService { ...@@ -547,7 +547,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
} }
} }
} catch (Exception e) { } catch (Exception e) {
log.error("getPressurePumpStatusChart-->获取稳压泵启停状态图失败:{}", e.getMessage()); log.error("getPressurePumpStatusDetailChart-->获取稳压泵启停状态图失败:{}", e.getMessage());
} }
return map; return map;
} }
......
...@@ -198,7 +198,7 @@ public class PressurePumpServiceImpl implements IPressurePumpService { ...@@ -198,7 +198,7 @@ public class PressurePumpServiceImpl implements IPressurePumpService {
dataList = getIotData(pumpInfoList, top, nameKey); dataList = getIotData(pumpInfoList, top, nameKey);
} }
} else { } else {
if (ObjectUtils.isEmpty(dataList) || ObjectUtils.isEmpty(dataListFilterTrue) || ObjectUtils.isEmpty(dataListFilterFalse)) { if (ObjectUtils.isEmpty(dataList) || ObjectUtils.isEmpty(dataListFilterTrue) || ObjectUtils.isEmpty(dataListFilterFalse) || dataListFilterTrue.size() < 2) {
dataList = getIotData(pumpInfoList, top, nameKey); dataList = getIotData(pumpInfoList, top, nameKey);
dataListFilterTrue = getDataListFilter(dataList, PressurePumpRelateEnum.IOT_INDEX_VALUE_TRUE.getValue()); dataListFilterTrue = getDataListFilter(dataList, PressurePumpRelateEnum.IOT_INDEX_VALUE_TRUE.getValue());
dataListFilterFalse = getDataListFilter(dataList, PressurePumpRelateEnum.IOT_INDEX_VALUE_FALSE.getValue()); dataListFilterFalse = getDataListFilter(dataList, PressurePumpRelateEnum.IOT_INDEX_VALUE_FALSE.getValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment