|
@@ -170,8 +170,8 @@ public class DashboardServiceImpl implements DashboardService {
|
|
|
threshold.setUnconfiguredCount(5 - thresholdConfigured.size());
|
|
threshold.setUnconfiguredCount(5 - thresholdConfigured.size());
|
|
|
|
|
|
|
|
List<String> contentHasData = dashboardMapper.getContentHasDataSystems();
|
|
List<String> contentHasData = dashboardMapper.getContentHasDataSystems();
|
|
|
- threshold.setNoDataCount(threshold.getConfiguredCount() - contentHasData.size());
|
|
|
|
|
- threshold.setTotalSystems(5-threshold.getUnconfiguredCount()-threshold.getNoDataCount());
|
|
|
|
|
|
|
+ threshold.setNoDataCount(contentHasData.size());
|
|
|
|
|
+ threshold.setConfiguredCount(5-threshold.getUnconfiguredCount()-threshold.getNoDataCount());
|
|
|
vo.setThreshold(threshold);
|
|
vo.setThreshold(threshold);
|
|
|
|
|
|
|
|
// 内容类
|
|
// 内容类
|
|
@@ -180,8 +180,8 @@ public class DashboardServiceImpl implements DashboardService {
|
|
|
content.setConfiguredCount(contentConfigured.size());
|
|
content.setConfiguredCount(contentConfigured.size());
|
|
|
content.setUnconfiguredCount(5 - contentConfigured.size());
|
|
content.setUnconfiguredCount(5 - contentConfigured.size());
|
|
|
List<String> thresholdHasData = dashboardMapper.getThresholdHasDataSystems();
|
|
List<String> thresholdHasData = dashboardMapper.getThresholdHasDataSystems();
|
|
|
- content.setNoDataCount(content.getConfiguredCount() - thresholdHasData.size());
|
|
|
|
|
- content.setTotalSystems(5-content.getUnconfiguredCount()-content.getNoDataCount());
|
|
|
|
|
|
|
+ content.setNoDataCount(thresholdHasData.size());
|
|
|
|
|
+ content.setConfiguredCount(5-content.getUnconfiguredCount()-content.getNoDataCount());
|
|
|
vo.setContent(content);
|
|
vo.setContent(content);
|
|
|
return vo;
|
|
return vo;
|
|
|
}
|
|
}
|