|
|
|
@ -102,10 +102,12 @@ public class CentralMonitorServiceImpl implements CentralMonitorService {
|
|
|
|
|
calendar.add(Calendar.HOUR_OF_DAY,-calendar.get(Calendar.HOUR_OF_DAY)); |
|
|
|
|
calendar.add(Calendar.MINUTE,-calendar.get(Calendar.MINUTE)); |
|
|
|
|
calendar.add(Calendar.SECOND,-calendar.get(Calendar.SECOND)); |
|
|
|
|
calendar.add(Calendar.MILLISECOND,-calendar.get(Calendar.MILLISECOND)); |
|
|
|
|
originalDataQuery.setBeginTime(calendar.getTime()); |
|
|
|
|
}else{ |
|
|
|
|
originalDataQuery.setBeginTime(start); |
|
|
|
|
originalDataQuery.setEndTime(end); |
|
|
|
|
} |
|
|
|
|
originalDataQuery.setBeginTime(start); |
|
|
|
|
originalDataQuery.setEndTime(end); |
|
|
|
|
Result<HzPage<PointData>> originalDataByRealIds = historyDataSearchClient.getOriginalDataByRealIds(originalDataQuery); |
|
|
|
|
if (!originalDataByRealIds.isSuccess()) { |
|
|
|
|
throw new ServiceException("数据不存在"); |
|
|
|
|