|
@@ -234,13 +234,20 @@ public class CommonServiceImpl implements CommonService {
|
|
|
CountAndDayRateDataVo dataVo = iDataAnalysisWebService.getIotDataAnalysisData(userCode, groupCode, projectId, reportDate, targetCode);
|
|
|
List<DateGraphItemVO> dateGraphItemVOList = new ArrayList<>();
|
|
|
TreeMap<Date, Double> dataMap = dataVo.getDataMap();
|
|
|
- if (null != dataMap && dataMap.size() != 0) {
|
|
|
+ /*if (null != dataMap && dataMap.size() != 0) {
|
|
|
for (Map.Entry<Date, Double> entry : dataMap.entrySet()) {
|
|
|
DateGraphItemVO dateGraphItemVO = new DateGraphItemVO();
|
|
|
dateGraphItemVO.setDate(entry.getKey());
|
|
|
dateGraphItemVO.setValue(entry.getValue());
|
|
|
dateGraphItemVOList.add(dateGraphItemVO);
|
|
|
}
|
|
|
+ }*/
|
|
|
+ List<Date> dateList = DateUtils.getDayList(reportDate, DateUtils.getMonthOff(reportDate, 1));
|
|
|
+ for (Date date : dateList) {
|
|
|
+ DateGraphItemVO dateGraphItemVO = new DateGraphItemVO();
|
|
|
+ dateGraphItemVO.setDate(date);
|
|
|
+ dateGraphItemVO.setValue(null == dataMap ? null : dataMap.get(date));
|
|
|
+ dateGraphItemVOList.add(dateGraphItemVO);
|
|
|
}
|
|
|
hotelProjectMaintenanceGraph.setMonthlyValue(dataVo.getCountRate());
|
|
|
String standardValue = null;
|