| | |
| | | //telemetryData.setCalendarCode(calendarCode); |
| | | } else { |
| | | //telemetryData.setCalendarCode("#default#"); |
| | | pdata.setCalendarCode("#default#"); |
| | | pdata.setCalendarCode(CommonConstant.DEFAULT_CODE); |
| | | } |
| | | |
| | | // TelemetryPropertyWrapper中packWorkstationCalendarInfo |
| | | //------------start |
| | | boolean isDefaultCalendar = true; |
| | | if (!"#default#".equals(pdata.getCalendarCode())) { |
| | | if (!CommonConstant.DEFAULT_CODE.equals(pdata.getCalendarCode())) { |
| | | CalendarShiftTimeSlicesDTO calendarShiftTimeSlicesDTO = timeSliceCache.getTimeSliceShift(pdata.getCalendarCode(), collectTime);//从redis中获得日历的时间切片 |
| | | if (ObjectUtil.isEmpty(calendarShiftTimeSlicesDTO)) {//如果没有时间切片,则使用TimeSliceCache.build(cacheBuildDTO);构建 |
| | | LocalDate targetDate = Instant.ofEpochMilli(pdata.getTime()).atZone(ZoneOffset.systemDefault()).toLocalDate(); |